Is there any way that makes the new SSH Key work with an old Droplet which is built with another SSH Key? It seems that every time I update my SSH Key, I need to build a new Droplet to use the new SSH Key.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Since you are referring to the ssh keys being put in place during Droplet creation I assume you are talking about adding an additional/new ssh keys to the root account?
Assuming that you still have access to the running Droplet you can yourself add an additional ssh key by editing /root/.ssh/authorized_keys. The more generic answer, for any user, is that a user’s ssh key(s) are looked for in ~/.ssh/authorized_keys.
If you on the other hand have looked yourself out of the Droplet you ought be able to reset the root password by way of the https://cloud.digitalocean.com/ control panel.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.