Hosting » DigitalOcean » How do I add a new SSH key to DigitalOcean?

How do I add a new SSH key to DigitalOcean?

Last updated on September 25, 2022 @ 2:15 pm

SSH keys are essential for logging into remote systems. They allow you to securely identify yourself to the remote server, regardless of whether or not you are using a password.

To add a new SSH key to DigitalOcean, first open the DigitalOcean SSH key management page. From there, click the Add SSH key button.

On the Add SSH key page, enter the details of your new key. Name the key and select a location to save it.

We recommend saving the key on your local machine, in a location that is easy to access.

PRO TIP: If you are adding a new SSH key to your DigitalOcean account, be sure to use a strong passphrase. A weak passphrase could allow someone to gain access to your account.

Next, click the Generate key button. This will generate a secure SSH key pair.

You will now need to copy the public key to the remote server.

To copy the public key to the remote server, open a terminal on the remote server and enter the following command:

cat ~/.ssh/id_rsa.pub

You will now be able to log in to the remote server using your new key.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.