Question

How do you change your SSH key?

Hello DigitalOcean community, I forgot to enter my SSH key in when I was creating my droplet. However, I cannot find a way to edit the droplet in order to change the SSH key. Does anyone know a way to do this?

Thank you, NewVoids


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Once you create Droplet, you’ll not be able to attach SSH key from Control Panel. However, you can always do that via SSH. As you didn’t used SSH key on Droplet creation, you got root password in your mail. Use it to login to the Droplet.

Step Four — Add Public Key Authentication (Recommended) of Initial Server Setup with Ubuntu 16.04 will help you do this. As you already have SSH key, you are free to skip Generate a Key Pair, you can start from Copy the Public Key.