Hosting » DigitalOcean » What is SSH key in DigitalOcean?

What is SSH key in DigitalOcean?

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

SSH (Secure Shell) is a secure protocol for logging into remote servers. It uses public-key cryptography to create a secure connection between the client and server.

When you create an account on DigitalOcean, we generate a public/private key pair for you. Your private key is unique to your account, and is stored securely on our servers.

You can use this key to log into your account on any of our servers.

To log in to your account on a different server, you first need to export your private key. On the server you want to log in to, open a terminal and type the following command:

ssh-keygen -t ed25519

This will generate a file called id_ed25519.pub.

You can copy this file to the server you want to log in to and paste it into the login prompt.

PRO TIP: This article is about SSH keys in DigitalOcean and how to use them. If you are not familiar with SSH keys, we recommend reading this article first.

Once you have logged in, you can use the following command to list your available commands:

ssh localhost

This command will list all the commands available to you on the localhost server. You can use any of these commands to log in to your account.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.