My machine recently stopped accepting incoming public key authentication. I have an ubuntu 11.04 desktop that I ssh into from a windows machine. I use putty with pageant. I am able to connect but only with interactive password authentication, not with my rsa key that I have setup.
I have already verified that the key is listed in ~/.ssh/authorized_keys. How do I fix this and what do I check?
~
,~/.ssh
and~/.ssh/authorized_keys
are only writable by you (in particular no group write permission). Look in/var/log/auth.log
for log entries created at the time of your login attempts. Copy-paste them into your question (editing out names for privacy if you like). Also check whether the problem is purely on the server side or not: copy the private key over to the Linux machine (you'll need to convert PuTTY's private key file into the OpenSSH format) and see ifssh localhost
works.