Enable Password Auth to Login Droplet without SSH Key

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
  3. Go to Access menu and click Reset Root Password button
    access reset root password
  4. Copy the Password which you received at your e-mail
    access reset root password 1
  5. Launch Console
    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 command nano /etc/ssh/sshd_config
  13. Find the line PasswordAuthentication no
  14. Replace to PasswordAuthentication yes
    set yes
  15. Save the file using command CTRL+O and press Enter key
  16. Restart the Droplet using reboot command reboot
  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/

Leave a Comment

2 thoughts on “Enable Password Auth to Login Droplet without SSH Key”

  1. Avatar of Harsh Banwait
    Harsh Banwait

    Hey Gulshan! This is Harsh, I’m the Product Manager for Droplets at DigitalOcean and just came across your post. Just wanted to say thank you for putting together this guide!

    • Avatar of Gulshan Kumar
      Gulshan Kumar

      My pleasure. Thanks for being there.