On this page
- Why save keys in the console at all?
- How do you create a key pair if you do not have one?
- How do you add a key on the SSH keys page?
- Why was my key rejected?
- How do you check that a saved key is the right one?
- How do you use the keys when deploying?
- Why do new keys not reach servers that already run?
- How do you add or remove a key on a running server?
- How should you organise keys over time?
- Questions
Why save keys in the console at all?
A saved key lets you log in to every new server from the first minute without typing the generated root password. You pick the keys on the Deploy page, the server installs them for root on first boot, and you connect with ssh root@198.51.100.24 straight away. Key based logins are also the basis for turning password logins off, which closes the door on password guessing bots that hit every public SSH port.
The console only ever stores the public half. The private key stays on your computer and never needs to be uploaded anywhere.
How do you create a key pair if you do not have one?
On Linux, macOS and Windows 10 or 11 the OpenSSH client already includes ssh-keygen. Create an Ed25519 key, which is short, fast and widely supported:
ssh-keygen -t ed25519 -C "deploy@laptop"Accept the default file location and set a passphrase. The command writes two files: ~/.ssh/id_ed25519 (private, keep it secret) and ~/.ssh/id_ed25519.pub (public, safe to share). Print the public one to copy it:
cat ~/.ssh/id_ed25519.pubIf something you use still requires RSA, make a 4096-bit key with ssh-keygen -t rsa -b 4096. PuTTY users can create keys in PuTTYgen; the guide on connecting with PuTTY shows which box to copy from.
How do you add a key on the SSH keys page?
Open SSH keys under Billing and access in the left menu. The top panel, Add an SSH key, has two fields:
- Name: a short label for the device or person, such as
laptoporoffice-desktop, up to 60 characters. - Public key: paste the whole single line, for example
ssh-ed25519 AAAAC3Nza... deploy@laptop. The comment at the end is optional.
Press Add key. The page reloads and the key appears in the Your keys table below with its name, the date it was added and its fingerprint. The console accepts ssh-ed25519, ssh-rsa and the ECDSA types ecdsa-sha2-nistp256, nistp384 and nistp521. Each key can be saved once per account, and an account holds up to 20 keys.
Why was my key rejected?
The console checks that the text really is one OpenSSH public key line. The common reasons it refuses one:
- You pasted the private key. It begins with
-----BEGIN OPENSSH PRIVATE KEY-----. Never paste that anywhere; use the.pubfile. - You pasted a key in the multi-line format that begins with
---- BEGIN SSH2 PUBLIC KEY ----, which PuTTYgen writes when you press Save public key. Copy the single line from the PuTTYgen window instead, or convert it on Linux withssh-keygen -i -f key.pub. - The line was cut while copying. A full Ed25519 key is about 80 characters plus the comment.
- The same key is already saved; the page then says the key is already saved.
How do you check that a saved key is the right one?
Compare fingerprints. The Your keys table shows each key as a SHA256 fingerprint, and you can print the same value for the file on your computer:
ssh-keygen -lf ~/.ssh/id_ed25519.pubThe part after SHA256: should match the console. On a server you can list the fingerprints of every key that may log in as root:
ssh-keygen -lf /root/.ssh/authorized_keysThis is the quickest way to find out which device a key belongs to when the comments are vague.
How do you use the keys when deploying?
On the Deploy page, the Server settings block lists every saved key under SSH keys as a checkbox with its name and the start of its fingerprint. Tick each key that should be able to log in, then finish the order as usual (see deploying a server). When the server is ready, those keys are in root's authorized_keys and you can connect with the matching private key. A root password is generated as well and shown on the Overview tab.
If no key is saved yet, the block says No SSH keys yet and links to the SSH keys page. Add the key there first and come back; the Deploy page then lists it.
Why do new keys not reach servers that already run?
Keys are applied at deploy time only. Adding a key on the SSH keys page changes the list offered for future servers; it does not log in to your existing machines. The same holds the other way round: pressing Delete on a key asks for confirmation and notes that servers which already have this key keep it. Removing access from a running server is something you do on the server itself.
This keeps the console from ever needing a way into your machines after they are built, which is a good property for security.
How do you add or remove a key on a running server?
From a computer that can already log in, push the new public key with ssh-copy-id:
ssh-copy-id -i ~/.ssh/id_ed25519.pub root@198.51.100.24Or append it by hand on the server, keeping the permissions strict:
install -d -m 700 ~/.ssh
echo "ssh-ed25519 AAAAC3Nza... deploy@new-laptop" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keysTo revoke a key, delete its line from authorized_keys, for example by its comment:
sed -i.bak '/deploy@old-laptop/d' ~/.ssh/authorized_keysTest a fresh login in a second terminal before closing the one you are in. On RHEL-family systems such as Rocky Linux and AlmaLinux, run restorecon -Rv ~/.ssh if you created the directory by hand and SELinux blocks the key. For a sudo user, the same steps go into /home/deploy/.ssh/authorized_keys; SSH keys and hardening covers that user and turning off password logins.
How should you organise keys over time?
Use one key per device rather than one key copied everywhere. When a laptop is lost or retired, you then delete exactly that key in the console and remove its line from each server, and every other device keeps working. Name keys after the device and include the year, such as laptop-2026, so old ones are easy to spot. Protect private keys with a passphrase and let an agent (ssh-agent, or Pageant on Windows) remember it during a session.
If you lose the only private key for a server and the root password no longer works, a reinstall from the Settings tab gives a fresh system with a new root password, at the cost of the disk contents.
Questions about Manage SSH keys in the console
Does adding a key in the console update my existing servers?
No. Keys are applied when a server is deployed. Add keys to running servers with ssh-copy-id or by editing ~/.ssh/authorized_keys.
If I delete a key in the console, can it still log in?
Yes, on servers that already have it. Remove its line from authorized_keys on each server to revoke access.
Which key types are accepted?
Ed25519 (ssh-ed25519), RSA (ssh-rsa) and ECDSA (ecdsa-sha2-nistp256, 384 or 521). Ed25519 is a good default.
How many keys can I save?
Up to 20 per account, and each key once.
Do I still get a root password when I use keys?
Yes. Every server gets a generated root password, shown on the Overview tab, whether or not you pick keys.
Can I upload my private key so the console can log in for me?
No, and you should never paste a private key anywhere. The console only stores public keys.