How to setup an openssl ssh server
This document is intended for,
- Windows 7
- Cygwin 1.7+
Setup system variables
Right click Computer > Properties > Advanced system settings > Environment Variables
Click the New new button to add a new entry to System variables:
variable name is CYGWIN variable value is ntsec tty
Select the Path variable and click the Edit edit button.
Append ;c:\cygwin\bin to the end of the existing variable string.
Set some permissions
$ chmod u+w /etc/passwd
$ chmod +r /etc/group
$ chmod u+w /etc/group
$ chmod 755 /var
$ chmod 664 /var/log/sshd.log
Setup ssh
If the script says, Should privilege separation be used? Answer yes
If the script says, This script plans to use cyg_server, Do you want to use a different name? Answer no
When the script stops and asks you for environment variable CYGWIN= Answer ntsec tty
Start the ssh service
Inside the cygwin terminal, use
or
Stop the ssh service
or
Trouble shooting
If the service fails to start, try
Note, the second command below is one or the other
$ chown system /var/empty OR chown sshd_server /var/empty
$ net start sshd
If you get ssh-exchange-identification: Connectiion closed by remote host error.
Edit the file /etc/hosts.allow and add these two lines
ALL: 127.0.0.1/32 : allow ALL: [::1]/128: allow
before the PARANOID line.
References
The original source below has much more detail. I just tried to pull out only the basic necessary parts to get ssh working.
[Click to add or edit comments])
Please prepend comments below including a date