I am trying to use Wing Pro to debug a Python script on the RPi 3Bv1.2 (with Raspbian Jessie) and I have followed these instructions in order to create a passwordless SSH connection with my Windows PC (using plink/Putty):
I have tried several times, copying both the id_rsa.pub and the copy-pasted text (in a file called key.txt) to ~/.ssh/authorized_keys but whatever I do I still get prompted for a password when I try to acces the RPi.
I have also followed another guide and added the following lines to the /etc/ssh/sshd_config file:
UsePAM no PermitRootLogin no AllowUsers pi RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes
And I even disabled PasswordAuthentication but then I just get this message from plink:
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
Do you have any idea about what I am doing wrong?
Edit: I'n not sure which version of the public key I should copy to authorized_keys (I tried both), as there are guides indication both options: a) the id_rsa.pub with format: ---- BEGIN SSH2 PUBLIC KEY ---- Comment: "rsa-key-20170428" (key) ---- END SSH2 PUBLIC KEY b) the copy-pasted text generated by puttygen with format: ssh-rsa (key) rsa-key-20170428
Edit 2: I logged the output of plink when trying to connect with PasswordAuthentication no. I hope this helps: