Access droplet with SSH from different machine

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).


@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/

Hope this helps you.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


Have you setup your droplet with keys, then you need to copy that key to the other computer in order to access your droplet.

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