Report this

What is the reason for this report?

SSH Key problem Ubuntu 14.04. Password is need although my home machine and droplet are paired!?

Posted on July 1, 2015

I’m new to digital ocean and I used the automagical add SSH Key form to share my public key, however when I ssh from my mac I am prompted for a password. I never used a passphrase when generating the keys so why am I prompted for a password when none was applied and how can I fix it?

droplet using Ubuntu 14.04



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.

Something similar happens to me also. I have created a droplet and I have applied my existing ssh keys during droplet creation. Everything was working on the first attempt. When I come back the other day it prompts for a password. The same happened with another droplet before.

I was having the same problem. It turns out that at some point a line feed was added in the middle of the ssh key on Digital Ocean’s side. The fingerprint is still identical but ssh doesn’t work. Make sure the key you are pasting into your settings does not have any line breaks in it.

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.