SSH key
How to connect to a Linux server over SSH with a key, and how to add the key when ordering.
On Linux servers, SSH password login is disabled. You can sign in to SSH only with a key. The password works only for the console.
Adding the key when ordering
You give the SSH key when you order the server.
- Order a server and go to the Access details section.
- In Username, enter the name of the user to create on the server. The default is
vps_admin.- The name must start with a lowercase letter or
_. - It must be 3–32 characters long.
root,admin,administratorandsysadminare not allowed.
- The name must start with a lowercase letter or
- Paste your public key into SSH public key. It looks like
ssh-ed25519 AAAA…. This field is required for Linux. - The VM password is generated for you. Save it now: after ordering it is not shown in the portal again, and it is e-mailed to you only once.
If you don't have a key, click How do I create a key? next to the field. It has steps for Terminal, Windows, PuTTY and MobaXterm.
Creating a key (Linux, macOS, Windows 10/11)
Run this in a terminal or PowerShell:
ssh-keygen -t ed25519This creates two files:
~/.ssh/id_ed25519.pub: the public key. Paste the contents of this file when ordering.~/.ssh/id_ed25519: the private key. Never share it.
Connecting to the server
The server's IP address is on its service page. The username is shown in Login user.
ssh vps_admin@SERVER_IPSSH (port 22) is open directly; no extra rule is needed. The server starts with the SSH key from your order. Signing in to SSH with a password is not possible.
The only port that is not opened directly is 3389 (Windows RDP). For RDP, choose another external port and add a port forwarding rule.
Adding another key or changing the key
The portal has no form for changing keys after ordering. Change them on the server itself:
- Connect to the server.
- Add the new key as a new line in
~/.ssh/authorized_keys. - To remove an old key, delete its line from the file.
If you lost your key, sign in through the console and fix the file there. If you don't know the console password, set a new one with Reset password.
Note: rebuilding the OS writes the key from your order again. Keys you added later are removed.