Lost Droplet SSH key? You can Login Droplet with Password

If you have lost Digital Ocean SSH key and you are unable to login, no worries. Just follow the step-by-step procedure. If need any help, please feel free to comment below.

  1. Login to Digital Ocean account
    login to DigitalOcean
  2. Select your desired Droplet which you want to recover
    droplet
  3. Go to Access menu and click Reset Reset Password button
  4. Copy the Password which you received at your e-mail
  5. Launch Console
  6. Type username root
  7. Using right click or CTRL+V paste the password and press Enter
  8. Digital Ocean will ask to change password, first Enter Current password
  9. Then, provide a New password
  10. Re-enter the New password
  11. Now, you are logged in via Console.
  12. But, we need to enable password login for the droplet, please enter below commandnano /etc/ssh/sshd_config
  13. Find the line PasswordAuthentication no
  14. Replace to PasswordAuthentication yes
  15. Save the file using command CTRL+O and press Enter key
  16. Restart the Droplet using reboot commandreboot
  17. Now, you can login using password in Putty SSH client without providing SSH key.

I hope this helps.

Reference: https://www.digitalocean.com/docs/droplets/resources/lost-ssh-key/

Any question? Please ask at Gulshan Forum.

Leave a Comment