Documentationchevron_rightSecurity

Security · 2 min read

Managing SSH Keys

Create an SSH key, add it at checkout or to a running server, log in with it, and remove or rotate keys when a device or person no longer needs access.

Last updated November 26, 2026

An SSH key lets you log in without a password and cannot be guessed. Create one on your computer with ssh-keygen -t ed25519, then add the public half to the server: paste it into the order form when you buy a Linux server, or copy it to a running server with ssh-copy-id. Keep the private half on your computer and never share it.

Creating a Key

ssh-keygen -t ed25519 -C "my-laptop" -f ~/.ssh/id_ed25519

This makes two files:

  • ~/.ssh/id_ed25519: the private key. It stays on your computer. Protect it with a passphrase.
  • ~/.ssh/id_ed25519.pub: the public key. This is what you put on servers.

Windows 10 and 11 have the same ssh-keygen command in PowerShell; the files go in C:\Users\YOU\.ssh\.

Adding a Key When You Order

The order form has an optional SSH public key field for Linux servers. Paste the contents of the .pub file. On a VPS it is installed for root when the server is built; on a dedicated server our team installs it at setup. The order form is the only place the dashboard takes a key; after that, add keys over SSH as below.

Adding a Key to a Running Server

ssh-copy-id -i ~/.ssh/id_ed25519.pub root@YOUR_SERVER_IP

Or by hand, on the server:

mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo 'ssh-ed25519 AAAA... my-laptop' >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

Logging In With the Key

ssh -i ~/.ssh/id_ed25519 deploy@YOUR_SERVER_IP

A shortcut in ~/.ssh/config saves typing:

Host myserver
  HostName YOUR_SERVER_IP
  User deploy
  IdentityFile ~/.ssh/id_ed25519
  IdentitiesOnly yes

Then just ssh myserver.

Removing a Key

Delete its line from ~/.ssh/authorized_keys on the server. The comment at the end of each line (such as my-laptop) tells you which key it is.

When to Replace Keys

Replace a key straight away when a laptop is lost, a person leaves, or a private key file may have been copied. Add the new key first, check it works, then remove the old one.

Lost Your Key?

On a VPS, log in with the root password through the browser console, or reset the password first: Resetting the Root or Administrator Password. Then add a new key.

Storage boxes take SSH keys on their own page in the dashboard; see Storage Boxes.

Related

Still stuck? Customers get support from the dashboard, and anyone can open a ticket. If you are not a customer yet, VPS plans deploy in minutes with root access and a browser console.

See VPS pricing