Add public SSH keys to DigitalOcean teams to make it easier to add keys to new Droplets during creation.
When you create a new Droplet, you can automatically add SSH keys on your team to the Droplet. This lets you connect to the Droplet with SSH keys from the start without having to manually configure SSH key authentication.
It’s safe to freely share your SSH public key because it cannot be used to re-create the private key. It can only be used to validate the user who holds the associated private key.
To add an SSH public key to a team, log in to the control panel and make sure you are logged in to the team you want to use.
In the left menu, click Settings, then click the Security tab at the top of the page to go to the team security settings page. The SSH keys section lists any keys already added to the team.
Click Add SSH Key to open the New SSH key window.
Copy your public key into the Public Key field. Enter a name in the Key Name field, which you use identify this key in the DigitalOcean Control Panel. We recommend using the name of the machine you copied the public key from.
Can’t find your key pair? By default, your key files are saved to the hidden SSH folder in your home directory, and your public key ends in .pub
.
/home/your_username/.ssh/id_rsa.pub
./Users/your_username/.ssh/id_rsa.pub
./Users/your_username/.ssh/id_rsa.pub
. If you generated your key pair with PuTTYgen, you need to use PuTTYgen to view the public key in the appropriate format.Finally, click Add SSH Key to add the key to your team.
In the … menu next to each key in the table, you can edit the key or delete it entirely. Deleting an SSH key from a team only removes the ability to create new Droplets with that key already added. It does not remove that SSH key from any Droplet’s SSH configuration.