Report this

What is the reason for this report?

Must I build a new Droplet when I update my SSH Key?

Posted on November 23, 2014

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.