By hello391564
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.