Installing Cygwin

  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 :

Name :CYGWIN

Value: ntsec tty

  1. Add cygwin path :

;c:\cygwin\bin to environment path variable.

  1. Run the following commands on the cygwin shell so that it can see local system users.

$mkpasswd –local > /etc/passwd

$mkgroup –local > /etc/group

  1. Now setup ssh server:

$cygrunsrv –stop sshd
$cygrunsrv –remove sshd
$ssh-host-config
$cygrunsrv –start sshd
or
net start sshd

Now you can create ssh keys by issuing :

ssh-keygen -t rsa

Now test ssh by sshing.. into the windows machine..