Logging in to your VPS with SSH (and creating an SSH key)
You manage your VPS via SSH: an encrypted connection to your server's command line. Logging in with an SSH key is safer and easier than using a password.
Logging in with your password

Windows 10 and 11, macOS and Linux already have SSH built in. Open PowerShell (Windows) or Terminal (Mac, Linux) and type:
ssh root@jouw-ip-adres
The first time, your computer shows a fingerprint of the server and asks whether you trust it. First compare it with the output of ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub in the console of your VPS screen (Open console button), and only type yes if they match. See Logging in with SSH for the first time.
You'll find your IP address in your VPS screen and in the "Your VPS has been installed" email. Prefer a program with windows? You can also use PuTTY or Termius.
Creating an SSH key
A key consists of two parts: a private key that stays on your own computer and a public key that you give to the server. Create one with:
ssh-keygen -t ed25519
Press Enter for the default location and optionally choose a passphrase. Your public key will then be in ~/.ssh/id_ed25519.pub (Windows: C:\Users\jouwnaam\.ssh\id_ed25519.pub). Display it with cat ~/.ssh/id_ed25519.pub. It starts with ssh-ed25519.
Putting the key on your VPS
- During installation: paste the public key into the SSH key field. You can also do this when reinstalling.
- On a running VPS: from your own computer with
ssh-copy-id root@jouw-ip-adres, or paste the line into/root/.ssh/authorized_keyson the server. If you do this manually, set the correct permissions:chmod 700 /root/.sshandchmod 600 /root/.ssh/authorized_keys. For a regular user, the file is in/home/naam/.ssh/and that user must also be the owner:chown -R naam:naam /home/naam/.ssh. If the permissions are too loose, SSH will refuse the key.
.pub), not even with us.Not working?
- Connection timed out: is your VPS switched on? Did you enable a firewall yourself without leaving port 22 open? Then log in via Open console in your VPS screen and undo your change (see No longer have access to your VPS: what now?).
- Permission denied: is the password correct? If necessary, set a new root password in the VPS screen, Advanced tab.
- REMOTE HOST IDENTIFICATION HAS CHANGED: the server shows a different fingerprint than the one your computer remembered. That's normal if you've just reinstalled the VPS. In that case, first check the new fingerprint in the console (see above), then remove the old line with
ssh-keygen -R jouw-ip-adresand log in again. If you haven't reinstalled anything, don't continue: the message may mean that someone is sitting between you and your server. Find out why first.
Detailed explanation with screenshots: Creating an SSH key on Windows, Mac and Linux and Common SSH error messages in the VPS manual.
Want to learn more? Take the free VPS and Linux server management course, lesson 2.1 Creating and using SSH keys.
