1 This package is the actual port of OpenSSH to Cygwin 1.3.
3 ===========================================================================
4 Important change since 3.0.1p1-2:
6 This version introduces the ability to register sshd as service on
7 Windows 9x/Me systems. This is done only when the options -D and/or
9 ===========================================================================
11 ===========================================================================
12 Important change since 2.9p2:
14 Since Cygwin is able to switch user context without password beginning
15 with version 1.3.2, OpenSSH now allows to do so when it's running under
16 a version >= 1.3.2. Keep in mind that `ntsec' has to be activated to
18 ===========================================================================
20 ===========================================================================
21 Important change since 2.3.0p1:
23 When using `ntea' or `ntsec' you now have to care for the ownership
24 and permission bits of your host key files and your private key files.
25 The host key files have to be owned by the NT account which starts
26 sshd. The user key files have to be owned by the user. The permission
27 bits of the private key files (host and user) have to be at least
30 Note that this is forced under `ntsec' only if the files are on a NTFS
31 filesystem (which is recommended) due to the lack of any basic security
32 features of the FAT/FAT32 filesystems.
33 ===========================================================================
35 If you are installing OpenSSH the first time, you can generate global config
36 files and server keys by running
38 /usr/bin/ssh-host-config
40 Note that this binary archive doesn't contain default config files in /etc.
41 That files are only created if ssh-host-config is started.
43 If you are updating your installation you may run the above ssh-host-config
44 as well to move your configuration files to the new location and to
45 erase the files at the old location.
47 To support testing and unattended installation ssh-host-config got
50 usage: ssh-host-config [OPTION]...
52 --debug -d Enable shell's debug output.
53 --yes -y Answer all questions with "yes" automatically.
54 --no -n Answer all questions with "no" automatically.
55 --port -p <n> sshd listens on port n.
57 Additionally ssh-host-config now asks if it should install sshd as a
58 service when running under NT/W2K. This requires cygrunsrv installed.
60 You can create the private and public keys for a user now by running
62 /usr/bin/ssh-user-config
64 under the users account.
66 To support testing and unattended installation ssh-user-config got
69 usage: ssh-user-config [OPTION]...
71 --debug -d Enable shell's debug output.
72 --yes -y Answer all questions with "yes" automatically.
73 --no -n Answer all questions with "no" automatically.
74 --passphrase -p word Use "word" as passphrase automatically.
76 Install sshd as daemon via cygrunsrv.exe (recommended on NT/W2K), via inetd
77 (results in very slow deamon startup!) or from the command line (recommended
80 If you start sshd as deamon via cygrunsrv.exe you MUST give the
81 "-D" option to sshd. Otherwise the service can't get started at all.
83 If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
84 following line to your inetd.conf file:
86 ssh stream tcp nowait root /usr/sbin/in.sshd sshd -i
88 Moreover you'll have to add the following line to your
89 ${SYSTEMROOT}/system32/drivers/etc/services file:
91 ssh 22/tcp #SSH daemon
93 ===========================================================================
94 The following restrictions only apply to Cygwin versions up to 1.3.1
95 ===========================================================================
97 Authentication to sshd is possible in one of two ways.
98 You'll have to decide before starting sshd!
100 - If you want to authenticate via RSA and you want to login to that
101 machine to exactly one user account you can do so by running sshd
102 under that user account. You must change /etc/sshd_config
103 to contain the following:
105 RSAAuthentication yes
107 Moreover it's possible to use rhosts and/or rhosts with
108 RSA authentication by setting the following in sshd_config:
110 RhostsAuthentication yes
111 RhostsRSAAuthentication yes
113 - If you want to be able to login to different user accounts you'll
114 have to start sshd under system account or any other account that
115 is able to switch user context. Note that administrators are _not_
116 able to do that by default! You'll have to give the following
117 special user rights to the user:
118 "Act as part of the operating system"
119 "Replace process level token"
121 and if used via service manager
122 "Logon as a service".
124 The system account does of course own that user rights by default.
126 Unfortunately, if you choose that way, you can only logon with
127 NT password authentification and you should change
128 /etc/sshd_config to contain the following:
130 PasswordAuthentication yes
131 RhostsAuthentication no
132 RhostsRSAAuthentication no
135 However you can login to the user which has started sshd with
136 RSA authentication anyway. If you want that, change the RSA
137 authentication setting back to "yes":
139 RSAAuthentication yes
141 Please note that OpenSSH does never use the value of $HOME to
142 search for the users configuration files! It always uses the
143 value of the pw_dir field in /etc/passwd as the home directory.
144 If no home diretory is set in /etc/passwd, the root directory
147 You may use all features of the CYGWIN=ntsec setting the same
148 way as they are used by the `login' port on sources.redhat.com:
150 The pw_gecos field may contain an additional field, that begins
151 with (upper case!) "U-", followed by the domain and the username
152 separated by a backslash.
153 CAUTION: The SID _must_ remain the _last_ field in pw_gecos!
154 BTW: The field separator in pw_gecos is the comma.
155 The username in pw_name itself may be any nice name:
157 domuser::1104:513:John Doe,U-domain\user,S-1-5-21-...
159 Now you may use `domuser' as your login name with telnet!
160 This is possible additionally for local users, if you don't like
161 your NT login name ;-) You only have to leave out the domain:
163 locuser::1104:513:John Doe,U-user,S-1-5-21-...
165 SSH2 server and user keys are generated by the `ssh-*-config' scripts
168 If you want to build from source, the following options to
169 configure are used for the Cygwin binary distribution:
173 --libexecdir='${exec_prefix}/sbin'
175 You must have installed the zlib and openssl packages to be able to
178 Please send requests, error reports etc. to cygwin@cygwin.com.
182 Corinna Vinschen <vinschen@redhat.com>