Install the following Cygwin packages (rerun setup if necessary — you can add packages after you have already installed Cygwin).
Admin –> cygrunsrv
Net –> openssh
Open a new bash shell window and run the SSH configure stuff.
ssh-host-config -y
This step will create necessary configuration files, a priviledge separation user and necessary directories.
When prompted with “CYGWIN=” type for following:
tty ntsec
Now you are ready to start the service.
cygrunsrv -S sshd
Finished
#################################
#################################
How to ssh from 1.1.1.1 to 2.2.2.2 without entering password
on 1.1.1.1
ssh-keygen -t rsa
ssh glgpslib@2.2.2.2 mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh glgpslib@2.2.2.2 ‘cat >> .ssh/authorized_keys’
ssh glgpslib@2.2.2.2 “chmod 700 .ssh; chmod 640 .ssh/authorized_keys”
Now, from 1.1.1.1, glgpslib can ssh glgpslib@1.1.1.1 ‘pwd’ without entering a password