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