Skip to main content

SSH keys

An SSH key lets you log in to your VPS as root without a password. Keys saved in the panel are written to the server when it is created and when the operating system (OS) is reinstalled, but not to a server that is already running. You can save up to 10 keys.

When ordering a VPS, enter your key in the Server login section. You will then log in with the key only, and the root password is neither shown nor sent.

Creating a key​

If you do not have a key yet, create one on your computer. The command is the same on all systems: on Windows 10 and 11 run it in PowerShell, on macOS and Linux in Terminal.

ssh-keygen -t ed25519

The command asks where to save the key and whether to protect it with a passphrase – press Enter to accept the defaults. Then display the public key:

cat ~/.ssh/id_ed25519.pub

Copy the whole line shown (it starts with ssh-ed25519) and paste it into the panel.

danger

Never paste or share your private key (the file without the .pub extension).

Adding a key​

  1. Open Panel → My services → [VPS server] → Settings → the SSH keys tab.
  2. Paste the public key into the Add a key field, click Add, then Save.

The "SSH keys" tab

A key added in the panel is not written to a running server. For it to work right away, log in to the server over SSH or through the console and add the key to the /root/.ssh/authorized_keys file (one per line).

If the panel rejects the key, check that you pasted the whole public key line (e.g. starting with ssh-ed25519) and that an RSA key is at least 2048 bits.

Removing a key​

In the SSH keys tab, click Remove next to the key, then Save. The key is removed from the panel only – to stop it working on the server, delete its line from /root/.ssh/authorized_keys.

Logging in with a key​

Replace YOUR_IP with your VPS IP address:

ssh root@YOUR_IP

Next​