I’m very confused as to how to achieve this, when I try to login via SSH on my new machine I get a "Permission denied (publickey).
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.
Hi @JATR
Have you setup your droplet with keys, then you need to copy that key to the other computer in order to access your droplet. https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users
If you’re using passwords only, then you have probably configured something wrong in your client on the other computer. Please tell which program you’re using.
I was facing the same issue but then I followed this article https://medium.com/@hidace/how-to-ssh-into-a-digitalocean-server-after-getting-permission-denied-publickey-error-77b687c2880d
@JATR try this
ssh <droplet user name>@<droplet IP address> -i ~/.ssh/id_rsa
If it still gives you the same error then the private key which you are using is not the right one for the public key you have on you droplet, in this case you can try to update your public key on the droplet with the one you have on your new machine
~/.ssh/id_rsa.pub
.Hope this helps you.