I’ve added a new SSH Key that I got from my second computer into
~/.ssh/authorized_keys, so now online 1 I have to key for my laptop and line 2 the key for my iMac.
I then restarted the service
sudo service ssh restart, this worked fine. I’ve even tried rebooting the entire droplet.
Now when i try to SSH in from my iMac
ssh email@example.com , I am prompted for my root’s password which I insert and I get a Permission denied, please try again error.
I’ve also tried:
cat ~/.ssh/id_rsa.pub | ssh root@[your.ip.address.here] "cat >> ~/.ssh/authorized_keys"
However again, i’m prompted to insert my password and again given the permission denied error.
How can I resolve this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.