Hosting » DigitalOcean » How do I create a SSH key for DigitalOcean droplet?

How do I create a SSH key for DigitalOcean droplet?

Last updated on September 25, 2022 @ 1:21 pm

SSH keys are a way to securely connect to a computer over the network. When you create a SSH key, you create an encrypted file that contains your public key.

You can then use this public key to log in to computers that you access over the network.

To create a SSH key for your DigitalOcean droplet, follow these steps:

1. Navigate to the droplet’s Settings page.

2. Click the Security Profile tab.

3. Click the SSH Keys link.

4. Click the Add New Key button.

5. Type a name for your key in the Key Name field.

6. Click the Add button.

7. In the Display Mode field, choose Public.

8. In the Save As field, type a filename for your key.

9. Click the Add Key button.

10. In the Confirmation dialog box, type a password for your key.

11. Click the Save button.

12. Click the Close button.

13. Log in to your droplet using the SSH key you just created.

PRO TIP: When creating a SSH key for your DigitalOcean droplet, be sure to use a strong passphrase and to keep it in a safe place. Also, make sure to add the SSH key to your droplet before attempting to connect.
Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.