Skip to content

Commit 653bf06

Browse files
authored
Update README.md
1 parent 3a54b1c commit 653bf06

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

window/ssh/README.md

+27-28
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
1-
1. Downloading Cygwin
2-
- download cygwin setup.exe and run it
3-
- choose an appropriate mirror
4-
Note: I will assume that Cygwin will be installed into C:\Programs\Cygwin. Do not install Cygwin into a folder that contains a space character (C:\Program Files). If you do so, you will face many random and unexpected troubles.
5-
2. Install from packages, choose the following:
6-
- OpenSSH,
7-
- tcp_wrappers,
8-
- diffutils [this should be pre-selected],
9-
- zlib
10-
11-
proceed with installation until it is finished.
1+
### 1. Downloading Cygwin
2+
- download cygwin setup.exe and run it
3+
- choose an appropriate mirror
4+
`Note: I will assume that Cygwin will be installed into C:\Programs\Cygwin. Do not install Cygwin into a folder that contains a space character (C:\Program Files). If you do so, you will face many random and unexpected troubles.`
125

13-
3. Configuring Cygwin
6+
### 2. Install from packages, choose the following:
7+
- OpenSSH,
8+
- tcp_wrappers,
9+
- diffutils [this should be pre-selected],
10+
- zlib
11+
proceed with installation until it is finished.
1412

15-
- run CygWin Bash Shell with Administrator privileges (C:\cygwin\Cygwin.bat)
16-
- from this Bash shell run ssh-host-config
17-
- say “yes” to privilege separation
18-
- say “yes” to create the sshd account
19-
- say “yes” to install sshd as a service
20-
- press to enter an empty value of CYGWIN for the daemon
21-
- Now Cygwin needs to create a new account that will be used as a “proxy”/setuid origin account. Say “no” to use the default name (cyg_server).
22-
- say “yes” to create a new privileged account cyg_server.
23-
- create a password for this new privileged account and confirm it
24-
- synchronize Windows user accounts with Cygwin user accounts:
13+
### 3. Configuring Cygwin
14+
- run CygWin Bash Shell with Administrator privileges (C:\cygwin\Cygwin.bat)
15+
- from this Bash shell run ssh-host-config
16+
- say “yes” to privilege separation
17+
- say “yes” to create the sshd account
18+
- say “yes” to install sshd as a service
19+
- press to enter an empty value of CYGWIN for the daemon
20+
Now Cygwin needs to create a new account that will be used as a “proxy”/setuid origin account. Say “no” to use the default name (cyg_server).
21+
- say “yes” to create a new privileged account cyg_server.
22+
- create a password for this new privileged account and confirm it
23+
- synchronize Windows user accounts with Cygwin user accounts:
2524
mkpasswd -cl > /etc/passwd
2625
mkgroup --local > /etc/group
27-
- start SSH server with net start sshd
26+
- start SSH server with net start sshd
2827

29-
- test connection with 'ssh localhost' from Cygwin Bash Shell.
28+
- test connection with 'ssh localhost' from Cygwin Bash Shell.
3029
say “yes” to check and store server fingerprint
3130
put your Windows account password to authenticate
3231
issue a few test commands in the remote session
3332
close session with exit.
3433
alternatively: test your SSHD with putty.
3534
36-
4. Common issues
37-
- Connection closed by ::1 error
38-
=> How to fix?
35+
### 4. Common issues
36+
- Connection closed by ::1 error
37+
=> How to fix?
3938
+ Check your hosts file: C:\Windows\System32\drivers\etc\hosts
4039
+ Uncomment two lines:
4140
127.0.0.1 localhost
@@ -50,4 +49,4 @@
5049
net user sshd /delete
5150
net user cyg_server /delete
5251
+ Re-install sshd (as step 3.)
53-
52+

0 commit comments

Comments
 (0)