]> andersk Git - openssh.git/blame - contrib/cygwin/README
- (bal) Cygwin README change by Corinna Vinschen <vinschen@redhat.com>
[openssh.git] / contrib / cygwin / README
CommitLineData
95273555 1This package is the actual port of OpenSSH to Cygwin 1.1.
2
3===========================================================================
4Important change since 2.3.0p1:
5
6When using `ntea' or `ntsec' you now have to care for the ownership
7and permission bits of your host key files and your private key files.
8The host key files have to be owned by the NT account which starts
9sshd. The user key files have to be owned by the user. The permission
10bits of the private key files (host and user) have to be at least
11rw------- (0600)!
12
13Note that this is forced under `ntsec' only if the files are on a NTFS
14filesystem (which is recommended) due to the lack of any basic security
15features of the FAT/FAT32 filesystems.
16===========================================================================
17
f52798a4 18If you are installing OpenSSH the first time, you can generate global config
19files and server keys by running
95273555 20
f4ebf0e8 21 /usr/bin/ssh-host-config
95273555 22
f4ebf0e8 23Note that this binary archive doesn't contain default config files in /etc.
24That files are only created if ssh-host-config is started.
25
26If you are updating your installation you may run the above ssh-host-config
95273555 27as well to move your configuration files to the new location and to
28erase the files at the old location.
29
f4ebf0e8 30To support testing and unattended installation ssh-host-config got
31some options:
95273555 32
f4ebf0e8 33usage: ssh-host-config [OPTION]...
34Options:
35 --debug -d Enable shell's debug output.
36 --yes -y Answer all questions with "yes" automatically.
37 --no -n Answer all questions with "no" automatically.
f52798a4 38 --port -p <n> sshd listens on port n.
f4ebf0e8 39
40You can create the private and public keys for a user now by running
41
42 /usr/bin/ssh-user-config
43
44under the users account.
45
46To support testing and unattended installation ssh-user-config got
47some options as well:
48
49usage: ssh-user-config [OPTION]...
50Options:
51 --debug -d Enable shell's debug output.
52 --yes -y Answer all questions with "yes" automatically.
53 --no -n Answer all questions with "no" automatically.
54 --passphrase -p word Use "word" as passphrase automatically.
95273555 55
56Install sshd as daemon via SRVANY.EXE (recommended on NT/W2K), via inetd
57(results in very slow deamon startup!) or from the command line (recommended
58on 9X/ME).
59
60If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
61following line to your inetd.conf file:
62
63sshd stream tcp nowait root /usr/sbin/in.sshd sshd -i
64
65Moreover you'll have to add the following line to your
66${SYSTEMROOT}/system32/drivers/etc/services file:
67
68 sshd 22/tcp #SSH daemon
69
70Authentication to sshd is possible in one of two ways.
71You'll have to decide before starting sshd!
72
73- If you want to authenticate via RSA and you want to login to that
74 machine to exactly one user account you can do so by running sshd
75 under that user account. You must change /etc/sshd_config
76 to contain the following:
77
78 RSAAuthentication yes
79
80 Moreover it's possible to use rhosts and/or rhosts with
81 RSA authentication by setting the following in sshd_config:
82
83 RhostsAuthentication yes
84 RhostsRSAAuthentication yes
85
86- If you want to be able to login to different user accounts you'll
87 have to start sshd under system account or any other account that
88 is able to switch user context. Note that administrators are _not_
89 able to do that by default! You'll have to give the following
90 special user rights to the user:
91 "Act as part of the operating system"
92 "Replace process level token"
93 "Increase quotas"
94 and if used via service manager
95 "Logon as a service".
96
97 The system account does of course own that user rights by default.
98
99 Unfortunately, if you choose that way, you can only logon with
100 NT password authentification and you should change
101 /etc/sshd_config to contain the following:
102
103 PasswordAuthentication yes
104 RhostsAuthentication no
105 RhostsRSAAuthentication no
106 RSAAuthentication no
107
108 However you can login to the user which has started sshd with
109 RSA authentication anyway. If you want that, change the RSA
110 authentication setting back to "yes":
111
112 RSAAuthentication yes
113
9a00bfce 114Please note that OpenSSH does never use the value of $HOME to
115search for the users configuration files! It always uses the
116value of the pw_dir field in /etc/passwd as the home directory.
117If no home diretory is set in /etc/passwd, the root directory
118is used instead!
119
95273555 120You may use all features of the CYGWIN=ntsec setting the same
121way as they are used by the `login' port on sources.redhat.com:
122
123 The pw_gecos field may contain an additional field, that begins
124 with (upper case!) "U-", followed by the domain and the username
125 separated by a backslash.
126 CAUTION: The SID _must_ remain the _last_ field in pw_gecos!
127 BTW: The field separator in pw_gecos is the comma.
128 The username in pw_name itself may be any nice name:
129
130 domuser::1104:513:John Doe,U-domain\user,S-1-5-21-...
131
132 Now you may use `domuser' as your login name with telnet!
133 This is possible additionally for local users, if you don't like
134 your NT login name ;-) You only have to leave out the domain:
135
136 locuser::1104:513:John Doe,U-user,S-1-5-21-...
137
9a00bfce 138SSH2 server and user keys are generated by the `ssh-*-config' scripts
139as well.
95273555 140
9a00bfce 141SSH2 authentication similar to SSH1:
95273555 142 Add keys to ~/.ssh/authorized_keys2
143Interop. w/ ssh.com dsa-keys:
144 ssh-keygen -f /key/from/ssh.com -X >> ~/.ssh/authorized_keys2
145and vice versa:
146 ssh-keygen -f /privatekey/from/openssh -x > ~/.ssh2/mykey.pub
147 echo Key mykey.pub >> ~/.ssh2/authorization
148
149If you want to build from source, the following options to
150configure are used for the Cygwin binary distribution:
151
152--prefix=/usr --sysconfdir=/etc --libexecdir='${exec_prefix}/sbin
153
154You must have installed the zlib, openssl and regex packages to
155be able to build OpenSSH!
156
157Please send requests, error reports etc. to cygwin@sources.redhat.com.
158
159Have fun,
160
161Corinna Vinschen <vinschen@cygnus.com>
162Cygwin Developer
163Red Hat Inc.
This page took 0.090711 seconds and 5 git commands to generate.