1Add your public key to your list of authorized keys on the server.
0Login to your SSH server.
0cat id_rsa.pub >> .ssh/authorized_keys
1Test your key.
0Logout of your SSH sever.
0Login to your SSH server again. This time, your key will be used for authentication and you won’t be challenged for your login credentials. If you are not logged in automatically, review the previous steps. Or contact your server administrator.
0Logout of your SSH server.
0Exit of the Cygwin shell.
1Install autossh as a Windows service.
0Now back in Windows, open a new command Window (Start → Run → cmd).