Windows: Droplet asks for password with SSH Keys.

I’m having a problem connecting to my Droplet I just created: It keeps asking for a password even though I have setup SSH keys.

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello all,

In cases like this one you can also specify the exact ssh-key that you want to use for the connection. It’s not uncommon to have more than one pair of ssh keys to access different droplets/servers and some of the keys might be password protected as well. In order to specify the key you can use the following command:

  1. ssh -i path_to_key root@DropletIP

You need to replace the path with the actual path to your key. An example is:

  1. ssh -i ~/.ssh/id_rsa root@DropletIP

Hope that this helps! Regards, Alex

You have probably added a private password to the SSH key, try to use that password. If you got no idea what password you need to use, you can reset your password at your DO control panel and you can login again afterwards you get an email.