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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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