Report this

What is the reason for this report?

Windows: Droplet asks for password with SSH Keys.

Posted on October 26, 2015

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.



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!

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.

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.