2001-07-18 18:25:41 +02:00
|
|
|
This package is the actual port of OpenSSH to Cygwin 1.3.
|
|
|
|
|
2001-11-27 02:19:43 +01:00
|
|
|
===========================================================================
|
|
|
|
Important change since 3.0.1p1-2:
|
|
|
|
|
|
|
|
This version introduces the ability to register sshd as service on
|
|
|
|
Windows 9x/Me systems. This is done only when the options -D and/or
|
|
|
|
-d are not given.
|
|
|
|
===========================================================================
|
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
===========================================================================
|
|
|
|
Important change since 2.9p2:
|
|
|
|
|
|
|
|
Since Cygwin is able to switch user context without password beginning
|
|
|
|
with version 1.3.2, OpenSSH now allows to do so when it's running under
|
|
|
|
a version >= 1.3.2. Keep in mind that `ntsec' has to be activated to
|
|
|
|
allow that feature.
|
|
|
|
===========================================================================
|
2000-10-29 20:18:49 +01:00
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
Important change since 2.3.0p1:
|
|
|
|
|
|
|
|
When using `ntea' or `ntsec' you now have to care for the ownership
|
|
|
|
and permission bits of your host key files and your private key files.
|
|
|
|
The host key files have to be owned by the NT account which starts
|
|
|
|
sshd. The user key files have to be owned by the user. The permission
|
|
|
|
bits of the private key files (host and user) have to be at least
|
|
|
|
rw------- (0600)!
|
|
|
|
|
|
|
|
Note that this is forced under `ntsec' only if the files are on a NTFS
|
|
|
|
filesystem (which is recommended) due to the lack of any basic security
|
|
|
|
features of the FAT/FAT32 filesystems.
|
|
|
|
===========================================================================
|
|
|
|
|
2001-03-07 11:38:19 +01:00
|
|
|
If you are installing OpenSSH the first time, you can generate global config
|
|
|
|
files and server keys by running
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2001-01-19 06:37:32 +01:00
|
|
|
/usr/bin/ssh-host-config
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2001-01-19 06:37:32 +01:00
|
|
|
Note that this binary archive doesn't contain default config files in /etc.
|
|
|
|
That files are only created if ssh-host-config is started.
|
|
|
|
|
|
|
|
If you are updating your installation you may run the above ssh-host-config
|
2000-10-29 20:18:49 +01:00
|
|
|
as well to move your configuration files to the new location and to
|
|
|
|
erase the files at the old location.
|
|
|
|
|
2001-01-19 06:37:32 +01:00
|
|
|
To support testing and unattended installation ssh-host-config got
|
|
|
|
some options:
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2001-01-19 06:37:32 +01:00
|
|
|
usage: ssh-host-config [OPTION]...
|
|
|
|
Options:
|
|
|
|
--debug -d Enable shell's debug output.
|
|
|
|
--yes -y Answer all questions with "yes" automatically.
|
|
|
|
--no -n Answer all questions with "no" automatically.
|
2001-03-07 11:38:19 +01:00
|
|
|
--port -p <n> sshd listens on port n.
|
2001-01-19 06:37:32 +01:00
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
Additionally ssh-host-config now asks if it should install sshd as a
|
|
|
|
service when running under NT/W2K. This requires cygrunsrv installed.
|
|
|
|
|
2001-01-19 06:37:32 +01:00
|
|
|
You can create the private and public keys for a user now by running
|
|
|
|
|
|
|
|
/usr/bin/ssh-user-config
|
|
|
|
|
|
|
|
under the users account.
|
|
|
|
|
|
|
|
To support testing and unattended installation ssh-user-config got
|
|
|
|
some options as well:
|
|
|
|
|
|
|
|
usage: ssh-user-config [OPTION]...
|
|
|
|
Options:
|
|
|
|
--debug -d Enable shell's debug output.
|
|
|
|
--yes -y Answer all questions with "yes" automatically.
|
|
|
|
--no -n Answer all questions with "no" automatically.
|
|
|
|
--passphrase -p word Use "word" as passphrase automatically.
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
Install sshd as daemon via cygrunsrv.exe (recommended on NT/W2K), via inetd
|
2000-10-29 20:18:49 +01:00
|
|
|
(results in very slow deamon startup!) or from the command line (recommended
|
|
|
|
on 9X/ME).
|
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
If you start sshd as deamon via cygrunsrv.exe you MUST give the
|
|
|
|
"-D" option to sshd. Otherwise the service can't get started at all.
|
2001-05-04 00:45:21 +02:00
|
|
|
|
2000-10-29 20:18:49 +01:00
|
|
|
If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
|
|
|
|
following line to your inetd.conf file:
|
|
|
|
|
|
|
|
sshd stream tcp nowait root /usr/sbin/in.sshd sshd -i
|
|
|
|
|
|
|
|
Moreover you'll have to add the following line to your
|
|
|
|
${SYSTEMROOT}/system32/drivers/etc/services file:
|
|
|
|
|
|
|
|
sshd 22/tcp #SSH daemon
|
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
===========================================================================
|
|
|
|
The following restrictions only apply to Cygwin versions up to 1.3.1
|
|
|
|
===========================================================================
|
|
|
|
|
2000-10-29 20:18:49 +01:00
|
|
|
Authentication to sshd is possible in one of two ways.
|
|
|
|
You'll have to decide before starting sshd!
|
|
|
|
|
|
|
|
- If you want to authenticate via RSA and you want to login to that
|
|
|
|
machine to exactly one user account you can do so by running sshd
|
|
|
|
under that user account. You must change /etc/sshd_config
|
|
|
|
to contain the following:
|
|
|
|
|
|
|
|
RSAAuthentication yes
|
|
|
|
|
|
|
|
Moreover it's possible to use rhosts and/or rhosts with
|
|
|
|
RSA authentication by setting the following in sshd_config:
|
|
|
|
|
|
|
|
RhostsAuthentication yes
|
|
|
|
RhostsRSAAuthentication yes
|
|
|
|
|
|
|
|
- If you want to be able to login to different user accounts you'll
|
|
|
|
have to start sshd under system account or any other account that
|
|
|
|
is able to switch user context. Note that administrators are _not_
|
|
|
|
able to do that by default! You'll have to give the following
|
|
|
|
special user rights to the user:
|
|
|
|
"Act as part of the operating system"
|
|
|
|
"Replace process level token"
|
|
|
|
"Increase quotas"
|
|
|
|
and if used via service manager
|
|
|
|
"Logon as a service".
|
|
|
|
|
|
|
|
The system account does of course own that user rights by default.
|
|
|
|
|
|
|
|
Unfortunately, if you choose that way, you can only logon with
|
|
|
|
NT password authentification and you should change
|
|
|
|
/etc/sshd_config to contain the following:
|
|
|
|
|
|
|
|
PasswordAuthentication yes
|
|
|
|
RhostsAuthentication no
|
|
|
|
RhostsRSAAuthentication no
|
|
|
|
RSAAuthentication no
|
|
|
|
|
|
|
|
However you can login to the user which has started sshd with
|
|
|
|
RSA authentication anyway. If you want that, change the RSA
|
|
|
|
authentication setting back to "yes":
|
|
|
|
|
|
|
|
RSAAuthentication yes
|
|
|
|
|
2001-03-14 22:30:18 +01:00
|
|
|
Please note that OpenSSH does never use the value of $HOME to
|
|
|
|
search for the users configuration files! It always uses the
|
|
|
|
value of the pw_dir field in /etc/passwd as the home directory.
|
|
|
|
If no home diretory is set in /etc/passwd, the root directory
|
|
|
|
is used instead!
|
|
|
|
|
2000-10-29 20:18:49 +01:00
|
|
|
You may use all features of the CYGWIN=ntsec setting the same
|
|
|
|
way as they are used by the `login' port on sources.redhat.com:
|
|
|
|
|
|
|
|
The pw_gecos field may contain an additional field, that begins
|
|
|
|
with (upper case!) "U-", followed by the domain and the username
|
|
|
|
separated by a backslash.
|
|
|
|
CAUTION: The SID _must_ remain the _last_ field in pw_gecos!
|
|
|
|
BTW: The field separator in pw_gecos is the comma.
|
|
|
|
The username in pw_name itself may be any nice name:
|
|
|
|
|
|
|
|
domuser::1104:513:John Doe,U-domain\user,S-1-5-21-...
|
|
|
|
|
|
|
|
Now you may use `domuser' as your login name with telnet!
|
|
|
|
This is possible additionally for local users, if you don't like
|
|
|
|
your NT login name ;-) You only have to leave out the domain:
|
|
|
|
|
|
|
|
locuser::1104:513:John Doe,U-user,S-1-5-21-...
|
|
|
|
|
2001-03-14 22:30:18 +01:00
|
|
|
SSH2 server and user keys are generated by the `ssh-*-config' scripts
|
|
|
|
as well.
|
2000-10-29 20:18:49 +01:00
|
|
|
|
|
|
|
If you want to build from source, the following options to
|
|
|
|
configure are used for the Cygwin binary distribution:
|
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2001-11-27 02:19:43 +01:00
|
|
|
--libexecdir='${exec_prefix}/sbin'
|
2000-10-29 20:18:49 +01:00
|
|
|
|
|
|
|
You must have installed the zlib, openssl and regex packages to
|
2001-11-27 02:19:43 +01:00
|
|
|
be able to build OpenSSH!
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
Please send requests, error reports etc. to cygwin@cygwin.com.
|
2000-10-29 20:18:49 +01:00
|
|
|
|
|
|
|
Have fun,
|
|
|
|
|
2001-07-18 18:25:41 +02:00
|
|
|
Corinna Vinschen <vinschen@redhat.com>
|
2000-10-29 20:18:49 +01:00
|
|
|
Cygwin Developer
|
|
|
|
Red Hat Inc.
|