This article is assuming that you have installed CYGWIN on your Winders environment already.
I had troubles getting SSHD to run on the system and as with SSH it ended up being dumb file and/or directory permissions.
- Make sure you have an /etc/password file.
# mkpasswd -cl > /etc/passwd - Make sure you have an /etc/group file.
# mkgroup -l > /etc/group - Setup the ssh config files.
# /usr/bin/ssh-host-config

- Fix user permissions
# chmod 755 /var
# chmod 664 /var/log/sshd.log - Fix file ownership
# chown cyg_server /var/empty
# chown cyg_server /etc/ssh* - Test starting the SSHD service
# net start sshd - If it doesn’t start consult the log file
# less /var/log/sshd.log
