Hi,
I have now been using Pi Jessie for a few months now headlessly. I connect to the pi on my local network via SSH password with PuTTY from a windows 10 64-bit machine. I recently tried to set up SSH key authentication but cannot get it to work. I generated the key pair with PuTTYgen. I then appended the public key to the file /home/pi/.ssh/authorized_keys. I then restarted ssh on the pi with
sudo /etc/init.d/ssh restart
Next, on my Windows machine, I ran Pageant and added my Private key, entering the password when prompted. Finally I ran PuTTY making sure that it pointed to my private key on the windows system.
However, each time I try and connect I get the usual password prompt.
If I go into the file /etc/ssh/sshd_config and set PasswordAuthentication no then I can no longer login to the Pi from my windows PC.
I also have an Android phone with JuiceSSH installed. With this I can access my Pi using keys. I have the public key in the Pi's authorized_keys file and if I set PasswordAuthentication no in /etc/ssh/sshd_config everything works fine.
In conclusiuon I have no idea why the JuiceSSH system works and not the Putty version.
I have tried both public keys in the authorized_keys file and each individually. But the JuiceSSH key is the only one that ever works!
Any help much appreciated.
gauss76