Add SSH key after creating a DigitalOcean droplet

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

Ready to automate your backups?

Sign up for FREE. Get started in less than one minute.

Secure your backups

No credit card required. Free 7-day trial.