I've setup an OpenSSH server on my windows machine and have been able to successfully SSH from windows box to my Linux machine (and vice-versa) successfully.
Although, I am not able to set up key authentication for the same... here are the steps that I followed
On Windows - OpenSSH
C:\OpenSSH\bin> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/Arpit/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/Arpit/.ssh/id_rsa. Your public key has been saved in /home/Arpit/.ssh/id_rsa.pub. The key fingerprint is: b9:0c:33:15:9f:8a:bf:02:cf:80:43:7c:6e:42:07:52 Arpit@Windows-HOST C:\OpenSSH\bin> scp "C:\Documents and Settings\Arpit\.ssh\id_rsa.pub" Arpit@Linux-HOST:
Tried ssh after these steps but it was asking password to connect
[arpit@Linux-HOST ~]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/arpit/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/arpit/.ssh/id_rsa. Your public key has been saved in /home/arpit/.ssh/id_rsa.pub. The key fingerprint is: e8:ac:43:a5:52:d5:ca:11:ea:2f:ae:b9:b0:cb:ba:8e arpit@Linux-HOST [arpit@Linux-HOST ~]$ ssh-copy-id -i /home/arpit/.ssh/id_rsa.pub arpit@Windows-HOST arpit@Windows-HOST's password: Now try logging into the machine, with "ssh 'arpit@Windows-HOST'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
Still no luck. Can anybody help me with the same?