README 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. This package describes important Cygwin specific stuff concerning OpenSSH.
  2. The binary package is usually built for recent Cygwin versions and might
  3. not run on older versions. Please check http://cygwin.com/ for information
  4. about current Cygwin releases.
  5. ==================
  6. Host configuration
  7. ==================
  8. If you are installing OpenSSH the first time, you can generate global config
  9. files and server keys, as well as installing sshd as a service, by running
  10. /usr/bin/ssh-host-config
  11. Note that this binary archive doesn't contain default config files in /etc.
  12. That files are only created if ssh-host-config is started.
  13. To support testing and unattended installation ssh-host-config got
  14. some options:
  15. usage: ssh-host-config [OPTION]...
  16. Options:
  17. --debug -d Enable shell's debug output.
  18. --yes -y Answer all questions with "yes" automatically.
  19. --no -n Answer all questions with "no" automatically.
  20. --cygwin -c <options> Use "options" as value for CYGWIN environment var.
  21. --name -N <name> sshd windows service name.
  22. --port -p <n> sshd listens on port n.
  23. --user -u <account> privileged user for service, default 'cyg_server'.
  24. --pwd -w <passwd> Use "pwd" as password for privileged user.
  25. --privileged On Windows XP, require privileged user
  26. instead of LocalSystem for sshd service.
  27. Installing sshd as daemon via ssh-host-config is recommended.
  28. Alternatively you can start sshd via inetd, if you have the inetutils
  29. package installed. Just run ssh-host-config, but answer "no" when asked
  30. to install sshd as service. The ssh-host-config script also adds the
  31. required lines to /etc/inetd.conf and /etc/services.
  32. ==================
  33. User configuration
  34. ==================
  35. Any user can simplify creating the own private and public keys by running
  36. /usr/bin/ssh-user-config
  37. To support testing and unattended installation ssh-user-config got
  38. some options as well:
  39. usage: ssh-user-config [OPTION]...
  40. Options:
  41. --debug -d Enable shell's debug output.
  42. --yes -y Answer all questions with "yes" automatically.
  43. --no -n Answer all questions with "no" automatically.
  44. --passphrase -p word Use "word" as passphrase automatically.
  45. Please note that OpenSSH does never use the value of $HOME to
  46. search for the users configuration files! It always uses the
  47. value of the pw_dir field in /etc/passwd as the home directory.
  48. If no home directory is set in /etc/passwd, the root directory
  49. is used instead!
  50. ================
  51. Building OpenSSH
  52. ================
  53. Building from source is easy. Just unpack the source archive, cd to that
  54. directory, and call cygport:
  55. cygport openssh.cygport all
  56. You must have installed the following packages to be able to build OpenSSH
  57. with the aforementioned cygport script:
  58. zlib
  59. crypt
  60. libssl-devel
  61. libedit-devel
  62. libkrb5-devel
  63. Please send requests, error reports etc. to cygwin@cygwin.com.
  64. Have fun,
  65. Corinna Vinschen
  66. Cygwin Developer
  67. Red Hat Inc.