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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
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:
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!