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

  • Posted 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.


Submit an 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 control panel.