Add SSH key after creating a DigitalOcean droplet

SimpleBackups founder

Laurent Lemaire

Co-founder, SimpleBackups

October 6, 2019

If you got locked out and cannot access your DigitalOcean server but still have access to your DigitalOcean account, then here is a workaround to regain access to your server data.

simplebackups ssh key DigitalOcean droplet

Photo by lalesh aldarwish from Pexels

Step 1

Take a snapshot of your droplet from DigitalOcean

Step 2

Create a droplet from the snapshot taken – right here you will be given the option to add an SSH key, add your new one or even choose password auth.

Step 3

After the new droplet is created, you can SSH using your chosen key to the new droplet and access your old data.

Finally

You may delete the old droplet and update your DNS and apps to use the new IP address – or if you are using a floating IP then just let it point to the new droplet!



Back to blog

Stop worrying about your backups.
Focus on building amazing things!

Free 7-day trial. No credit card required.

Have a question? Need help getting started?
Get in touch via chat or at [email protected]

Customer support with experts
Security & compliance
Service that you'll love using