Installing Cygwin
-
Download the latest cygwin and Run setup.
-
Make the selections as per the requirement.
3.Setup a new system variable in the environmental variable :
Name :CYGWIN
Value: ntsec tty
- Add cygwin path :
;c:\cygwin\bin to environment path variable.
- Run the following commands on the cygwin shell so that it can see local system users.
$mkpasswd –local > /etc/passwd
$mkgroup –local > /etc/group
- 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..