1. Download the latest cygwin and Run setup.
2. Make the selections as per the requirement.
3.Setup a new system variable in the environmental variable :
Value: ntsec tty
4. Add cygwin path :
;c:\cygwin\bin to environment path variable.
5. Run the following commands on the cygwin shell so that it can see local system users.
$mkpasswd –local > /etc/passwd
$mkgroup –local > /etc/group
6. Now setup ssh server:
$cygrunsrv –stop sshd
$cygrunsrv –remove sshd
$cygrunsrv –start sshd
net start sshd
Now you can create ssh keys by issuing :
ssh-keygen -t rsa
Now test ssh by sshing.. into the windows machine..