DigitalOcean Droplet Locked Out: Reset Root Password and Recovery Console
Quick answer
If you lost your SSH key or password, reset the root password in the Control Panel and log in through the Recovery Console, then re-add a key. Recovery Console needs the Droplet running and password login enabled.
Most likely fix: Reset the root password
How to fix it
Try these in order — the most common fix is first.
1. Reset the root password
- Droplet > Settings > Reset root password > Reset Root
- Use the temporary password from the email and choose a new one at first login
Did this fix it?2. Launch the console
- Droplet > Settings > Recovery console > Launch Console
- Click the console and press ENTER, then log in as root
- If digits type wrongly, paste with CTRL+V
Did this fix it?3. Re-enable access
- Enable password auth temporarily in sshd_config if needed (also check /etc/ssh/sshd_config.d/ on newer images)
- Add a new public key to ~/.ssh/authorized_keys, set permissions 700/600, then turn password login back off
Did this fix it?
Symptoms
You cannot log in over SSH, lost your key, or the Recovery Console asks for a password you never set.
Why it happens
- Lost the private key
- No root password set (key-only Droplet)
- Password authentication disabled in sshd config
- Console input quirks (number keys, paste)
This guide also covers
- digitalocean reset root password
- digitalocean recovery console
- i lost the ssh key for my droplet
- digitalocean droplet locked out
Still not working?
If DigitalOcean keeps failing, you're not alone. See every DigitalOcean problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther DigitalOcean errors
- DigitalOcean Droplet SSH Permission Denied (publickey)
- DigitalOcean Droplet SSH Connection Refused or Timed Out
- DigitalOcean Droplet 502 Bad Gateway (Nginx)
- DigitalOcean Droplet Out of Memory (OOM Killer)
- DigitalOcean App Platform Build Failed
- DigitalOcean App Platform Deploy Failed or 502 After Deploy
- DigitalOcean Account Locked or Verification Required
- DigitalOcean Unexpected Bill: Charged for Deleted or Powered-Off Droplets