Question

Digital ocean droplet ssh issues

I’m using a digital ocean droplet, which is having authentication issues, potentially ssh key issues.

I was normally logging in via ssh key from the digital ocean dashboard. I can’t log in anymore due to authentication issues.

1st try: I tried to reset the root password. I got a reset email. When I logged in on both the ISO mounted image and the hard drive it would ask me to enter the username and password. Then it would tell me to set a new password. I would set a new password and it would briefly flash a message. All I could gather was it was an authentication issue. Then it would reset and ask me for login again. The new password wouldn’t work. I would enter the password I got via email, it would tell me to set a new password… repeat.

2nd try: I restored a week old backup. I went on my computer and created a new ssh key. I used this method to copy it to the remote server https://www.chrisjhart.com/Windows-10-ssh-copy-id/#copy-ssh-key-to-remote-linux-device . Then I logged in via ssh. It let me know the disk was 99.9% full which was not the case when I logged out weeks ago. I closed my powershell ssh instance. I tried to login via digital ocean console. Authentication failure. I tried to log in via powershell ssh again. I got a public key failure.

3rd try I am restoring a 2 week old backup. This droplet is connected to the internet and a webpage can be accessed by anyone.

I am not sure what the issue is here.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
September 9, 2022

Hi there,

It sounds like that you are not using the correct private key. What I would suggest here is to follow the steps from this documentation here:

https://docs.digitalocean.com/support/i-lost-the-ssh-key-for-my-droplet./

This will show you how to enable password authentication so that you could again SSH to your server, and then upload a new public key if needed so that you could then use your new private SSH key.

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel