xref: /freebsd/crypto/openssh/contrib/cygwin/README (revision 19261079b74319502c6ffa1249920079f0f69a72)
1ce3adf43SDag-Erling SmørgravThis package describes important Cygwin specific stuff concerning OpenSSH.
2ce3adf43SDag-Erling Smørgrav
3ce3adf43SDag-Erling SmørgravThe binary package is usually built for recent Cygwin versions and might
4ce3adf43SDag-Erling Smørgravnot run on older versions.  Please check http://cygwin.com/ for information
5ce3adf43SDag-Erling Smørgravabout current Cygwin releases.
6ce3adf43SDag-Erling Smørgrav
7ce3adf43SDag-Erling Smørgrav==================
8ce3adf43SDag-Erling SmørgravHost configuration
9ce3adf43SDag-Erling Smørgrav==================
10ce3adf43SDag-Erling Smørgrav
11ce3adf43SDag-Erling SmørgravIf you are installing OpenSSH the first time, you can generate global config
12ce3adf43SDag-Erling Smørgravfiles and server keys, as well as installing sshd as a service, by running
13ce3adf43SDag-Erling Smørgrav
14ce3adf43SDag-Erling Smørgrav   /usr/bin/ssh-host-config
15ce3adf43SDag-Erling Smørgrav
16ce3adf43SDag-Erling SmørgravNote that this binary archive doesn't contain default config files in /etc.
17ce3adf43SDag-Erling SmørgravThat files are only created if ssh-host-config is started.
18ce3adf43SDag-Erling Smørgrav
19ce3adf43SDag-Erling SmørgravTo support testing and unattended installation ssh-host-config got
20ce3adf43SDag-Erling Smørgravsome options:
21ce3adf43SDag-Erling Smørgrav
22ce3adf43SDag-Erling Smørgravusage: ssh-host-config [OPTION]...
23ce3adf43SDag-Erling SmørgravOptions:
24ce3adf43SDag-Erling Smørgrav    --debug  -d            Enable shell's debug output.
25ce3adf43SDag-Erling Smørgrav    --yes    -y            Answer all questions with "yes" automatically.
26ce3adf43SDag-Erling Smørgrav    --no     -n            Answer all questions with "no" automatically.
27ce3adf43SDag-Erling Smørgrav    --cygwin -c <options>  Use "options" as value for CYGWIN environment var.
28076ad2f8SDag-Erling Smørgrav    --name   -N <name>     sshd windows service name.
29ce3adf43SDag-Erling Smørgrav    --port   -p <n>        sshd listens on port n.
30ce3adf43SDag-Erling Smørgrav    --user   -u <account>  privileged user for service, default 'cyg_server'.
31ce3adf43SDag-Erling Smørgrav    --pwd    -w <passwd>   Use "pwd" as password for privileged user.
32ce3adf43SDag-Erling Smørgrav    --privileged           On Windows XP, require privileged user
33ce3adf43SDag-Erling Smørgrav                           instead of LocalSystem for sshd service.
34ce3adf43SDag-Erling Smørgrav
35ce3adf43SDag-Erling SmørgravInstalling sshd as daemon via ssh-host-config is recommended.
36ce3adf43SDag-Erling Smørgrav
37ce3adf43SDag-Erling SmørgravAlternatively you can start sshd via inetd, if you have the inetutils
38ce3adf43SDag-Erling Smørgravpackage installed.  Just run ssh-host-config, but answer "no" when asked
39ce3adf43SDag-Erling Smørgravto install sshd as service.  The ssh-host-config script also adds the
40ce3adf43SDag-Erling Smørgravrequired lines to /etc/inetd.conf and /etc/services.
41ce3adf43SDag-Erling Smørgrav
42ce3adf43SDag-Erling Smørgrav==================
43ce3adf43SDag-Erling SmørgravUser configuration
44ce3adf43SDag-Erling Smørgrav==================
45ce3adf43SDag-Erling Smørgrav
46ce3adf43SDag-Erling SmørgravAny user can simplify creating the own private and public keys by running
47ce3adf43SDag-Erling Smørgrav
48ce3adf43SDag-Erling Smørgrav  /usr/bin/ssh-user-config
49ce3adf43SDag-Erling Smørgrav
50ce3adf43SDag-Erling SmørgravTo support testing and unattended installation ssh-user-config got
51ce3adf43SDag-Erling Smørgravsome options as well:
52ce3adf43SDag-Erling Smørgrav
53ce3adf43SDag-Erling Smørgravusage: ssh-user-config [OPTION]...
54ce3adf43SDag-Erling SmørgravOptions:
55ce3adf43SDag-Erling Smørgrav    --debug      -d        Enable shell's debug output.
56ce3adf43SDag-Erling Smørgrav    --yes        -y        Answer all questions with "yes" automatically.
57ce3adf43SDag-Erling Smørgrav    --no         -n        Answer all questions with "no" automatically.
58ce3adf43SDag-Erling Smørgrav    --passphrase -p word   Use "word" as passphrase automatically.
59ce3adf43SDag-Erling Smørgrav
60ce3adf43SDag-Erling SmørgravPlease note that OpenSSH does never use the value of $HOME to
61ce3adf43SDag-Erling Smørgravsearch for the users configuration files! It always uses the
62ce3adf43SDag-Erling Smørgravvalue of the pw_dir field in /etc/passwd as the home directory.
63*19261079SEd MasteIf no home directory is set in /etc/passwd, the root directory
64ce3adf43SDag-Erling Smørgravis used instead!
65ce3adf43SDag-Erling Smørgrav
66ce3adf43SDag-Erling Smørgrav================
67ce3adf43SDag-Erling SmørgravBuilding OpenSSH
68ce3adf43SDag-Erling Smørgrav================
69ce3adf43SDag-Erling Smørgrav
70ce3adf43SDag-Erling SmørgravBuilding from source is easy.  Just unpack the source archive, cd to that
71ce3adf43SDag-Erling Smørgravdirectory, and call cygport:
72ce3adf43SDag-Erling Smørgrav
73a0ee8cc6SDag-Erling Smørgrav	cygport openssh.cygport all
74ce3adf43SDag-Erling Smørgrav
75ce3adf43SDag-Erling SmørgravYou must have installed the following packages to be able to build OpenSSH
76ce3adf43SDag-Erling Smørgravwith the aforementioned cygport script:
77ce3adf43SDag-Erling Smørgrav
78ce3adf43SDag-Erling Smørgrav  zlib
79ce3adf43SDag-Erling Smørgrav  crypt
80*19261079SEd Maste  libssl-devel
81ce3adf43SDag-Erling Smørgrav  libedit-devel
82ce3adf43SDag-Erling Smørgrav  libkrb5-devel
83ce3adf43SDag-Erling Smørgrav
84ce3adf43SDag-Erling SmørgravPlease send requests, error reports etc. to cygwin@cygwin.com.
85ce3adf43SDag-Erling Smørgrav
86ce3adf43SDag-Erling Smørgrav
87ce3adf43SDag-Erling SmørgravHave fun,
88ce3adf43SDag-Erling Smørgrav
89ce3adf43SDag-Erling SmørgravCorinna Vinschen
90ce3adf43SDag-Erling SmørgravCygwin Developer
91ce3adf43SDag-Erling SmørgravRed Hat Inc.
92