2003-11-13 01:28:49 +01:00
|
|
|
This package describes important Cygwin specific stuff concerning OpenSSH.
|
|
|
|
|
|
|
|
The binary package is usually built for recent Cygwin versions and might
|
|
|
|
not run on older versions. Please check http://cygwin.com/ for information
|
|
|
|
about current Cygwin releases.
|
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
==================
|
|
|
|
Host configuration
|
|
|
|
==================
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2001-03-07 11:38:19 +01:00
|
|
|
If you are installing OpenSSH the first time, you can generate global config
|
2013-07-02 12:06:46 +02:00
|
|
|
files and server keys, as well as installing sshd as a service, by running
|
2003-11-21 13:48:55 +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.
|
|
|
|
|
|
|
|
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:
|
2004-01-23 11:35:44 +01:00
|
|
|
--debug -d Enable shell's debug output.
|
|
|
|
--yes -y Answer all questions with "yes" automatically.
|
|
|
|
--no -n Answer all questions with "no" automatically.
|
|
|
|
--cygwin -c <options> Use "options" as value for CYGWIN environment var.
|
2016-05-30 11:35:28 +02:00
|
|
|
--name -N <name> sshd windows service name.
|
2004-01-23 11:35:44 +01:00
|
|
|
--port -p <n> sshd listens on port n.
|
2013-07-02 12:06:46 +02:00
|
|
|
--user -u <account> privileged user for service, default 'cyg_server'.
|
|
|
|
--pwd -w <passwd> Use "pwd" as password for privileged user.
|
|
|
|
--privileged On Windows XP, require privileged user
|
|
|
|
instead of LocalSystem for sshd service.
|
2001-01-19 06:37:32 +01:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
Installing sshd as daemon via ssh-host-config is recommended.
|
2001-07-18 18:25:41 +02:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
Alternatively you can start sshd via inetd, if you have the inetutils
|
|
|
|
package installed. Just run ssh-host-config, but answer "no" when asked
|
|
|
|
to install sshd as service. The ssh-host-config script also adds the
|
|
|
|
required lines to /etc/inetd.conf and /etc/services.
|
2001-01-19 06:37:32 +01:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
==================
|
|
|
|
User configuration
|
|
|
|
==================
|
|
|
|
|
|
|
|
Any user can simplify creating the own private and public keys by running
|
2001-01-19 06:37:32 +01:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
/usr/bin/ssh-user-config
|
2001-01-19 06:37:32 +01:00
|
|
|
|
|
|
|
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-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.
|
2020-03-13 04:23:07 +01:00
|
|
|
If no home directory is set in /etc/passwd, the root directory
|
2001-03-14 22:30:18 +01:00
|
|
|
is used instead!
|
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
================
|
|
|
|
Building OpenSSH
|
|
|
|
================
|
2005-03-05 01:20:40 +01:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
Building from source is easy. Just unpack the source archive, cd to that
|
|
|
|
directory, and call cygport:
|
2005-03-05 01:20:40 +01:00
|
|
|
|
2014-08-20 03:10:51 +02:00
|
|
|
cygport openssh.cygport all
|
2000-10-29 20:18:49 +01:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
You must have installed the following packages to be able to build OpenSSH
|
|
|
|
with the aforementioned cygport script:
|
2010-06-17 20:11:44 +02:00
|
|
|
|
2013-07-02 12:06:46 +02:00
|
|
|
zlib
|
|
|
|
crypt
|
2019-05-26 20:50:08 +02:00
|
|
|
libssl-devel
|
2013-07-02 12:06:46 +02:00
|
|
|
libedit-devel
|
|
|
|
libkrb5-devel
|
2010-06-17 20:11:44 +02: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
|
|
|
|
2005-03-05 01:20:40 +01:00
|
|
|
|
2000-10-29 20:18:49 +01:00
|
|
|
Have fun,
|
|
|
|
|
2003-11-13 01:28:49 +01:00
|
|
|
Corinna Vinschen
|
2000-10-29 20:18:49 +01:00
|
|
|
Cygwin Developer
|
|
|
|
Red Hat Inc.
|