Skip to content

SSH keys

Adding SSH public keys during installation lets you log in to your server as root without typing a password. This is more convenient and more secure than password-based login.

SSH public keys are added through the Reinstall OS form. In the SSH Public Keys field, paste your public key or keys — one per line.

The Reinstall OS form with the SSH Public Keys field

Keys are applied during installation and placed in /root/.ssh/authorized_keys. They take effect as soon as the server finishes installing and boots.

Paste the full OpenSSH public key string. It looks like this:

ssh-ed25519 AAAA... you@host

Common key types are ssh-ed25519 (recommended) and ssh-rsa. The key type comes first, followed by the base64-encoded key material, and optionally a comment (such as you@host) at the end.

If you have multiple keys — for example, one for each machine you work from — paste them one per line.

If you don’t have an SSH key pair yet, generate one on your local machine:

Terminal window
ssh-keygen -t ed25519 -C "you@host"

This creates two files: a private key (keep it secret) and a public key ending in .pub. Paste the contents of the .pub file into the SSH Public Keys field.

SSH keys are written to the server only during an OS installation. To add or remove a key on a running server, edit /root/.ssh/authorized_keys directly via SSH or the console.