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.
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!
Free 7-day trial. No credit card required.
Have a question? Need help getting started?
Get in touch via chat or at [email protected]