newvoids
By:
newvoids

How do you change your SSH key?

January 2, 2017 353 views
DigitalOcean Ubuntu 16.04

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

1 Answer

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.

When you start a new server, there are a few steps that you should take every time to add some basic security and give you a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 16.04.
Have another answer? Share your knowledge.