Report this

What is the reason for this report?

SSH is asking for password

Posted on August 19, 2014

Good evening! I saw there are a lot of quesitons regarding this, but I did not found a solution. I have added “deploy” user and added key to authorized_keys - and was able to actually login with SSH using this key, but all of a sudden server is now prompting for a password again!

The only thing I did, I think, was creating another key (generating) on a server side (I need to to access other server), this process has created known_hosts file. I’m not sure if I was locked out of logging in with SSH key at this point or something else is causing this issue.

Please, adivce ASAP

Thank you!



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.

I too am facing same difficulty. My client PC is Win10 with Bash/WSL.

If I connect to my DO thru bash, it connects ok with ssh keys without any password demand. But if using the same keys, I try to login thru WindowsPowerShell, it demands the root password before letting me login.

I’m too facing same difficulty. I’m able to connect to/login to my remote host (DO droplet) from my windows pc’s WinScp. But I’m not able to connect thru Bash. It asks for password.

And during trying diff things, I tried to restart my ssh service on remote host, but that didn’t work and now my ssh service also has stopped on remote host (won’t start even with a reboot of the remote host). Pls help. I don’t want to reimage my droplet.

Try, on your computer (client) to delete contents of ~/.ssh/known_hosts and then ssh into your server.

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.