Permission denied (publickey)
I've followed the security guide in the library and locked down my server to only allow access with SSH keys. Unfortunately due to me messing about, I now can't log in via SSH and get the message "Permission denied (publickey)."
I've generated a new local key and tried to upload it to the server but got the Permission denied message again.
Any ideas?
Cheers,
Terry
6 Replies
So cat the contents of *.pub then edit it into your authorized_keys over Lish or maybe the AJAX console since you can't log into your server normally until you get this fixed.
Make sure you are using the correct remote user:
ssh user@host
Also add the -v to get more information.
Make sure your /home/
If you generated the keys on a Windows client using Cygwin in a bash shell, make sure the key files private and public are at 600 too.
Thanks for your help though