New SSH key but getting prompted for root password, which keeps coming back invalid

April 22, 2015 1.1k views
Linux Basics DigitalOcean Ubuntu

I have two droplets, both Ubuntu 14.04. I recently added a new SSH key to the server after rebuilding my linux-based laptop a couple of times. I generated a new public key on my laptop, added it into the keys in my account, then added to authorized_keys file on my droplet. I type in a console 'ssh root@myserverip' and it prompts me to enter my root password. When I enter the correct root password, it says "permission denied, please try again'.

Any ideas? I've never had trouble with this before. Thanks!

  • I have the same issue and I thought I read where when generation the ssh key the solution was to not provide a passphrase. It appears if you provide a passphrase or do not provide a passphrase the ssh root@<ipaddress> will fail either way. One would think DO would have clear instructions on this gotcha. Now I'm sitting here logged in with a Droplet I can't do anything with constructively.

  • Did anyone resolve this, I am getting the same issue? I am guessing its something simple?

Be the first one to answer this question.