permission denied (public key)
Sorry for this old chestnut but I'm stuck on the above message. Following a hard disk failure, I can only access my linode via Lish. My server is secured with public / private keys but my local machine no longer contains its key. I've followed the Linode guide to create and upload keys. This did work on one of my linodes but not on the other. I've now deleted the .ssh folder on lish and have then followed the linode guide. Everything works until I scp the new key from my mac. That's when I get the above message. I've also tried to paste the key from my local machine via lish and I've tried a reboot.
Many thanks for any help.
You can try logging in with tracing on: ssh -v
On the linode server, from lish, as root: /usr/sbin/sshd -D -d -p 2222
(for port 2222, unless you want it to run on standard 22 - stop the regular sshd then)
Add more -d for more details. It's usually enough to figure out what's wrong, you can see as it tries various authentication methods, and hopefully why it won't accept your key authentication.