Connect to your server with SSH
Log in to a Linux VPS over SSH from Linux, macOS or Windows with the SSH key or root password you chose, and fix the common errors.
Log in as root at the IPv4 address the panel shows for your server. How you prove it's you depends on what you chose when you ordered:
- You picked an SSH key (with or without a root password): SSH accepts the key and nothing else. A root password, if you set one, works on the serial console, not over SSH.
- You set a root password and picked no key: SSH asks for that password.
Every order has at least one of the two. We recommend a key, because a password on the open internet gets guessed at all day. If you don't have one yet, make one and save it in your account. Set a root password explains the password choices.
The examples use the placeholder 203.0.113.42; use your server's own address.
Linux and macOS
Open a terminal and run:
ssh root@203.0.113.42If you log in with a key that has a passphrase, SSH asks for the passphrase. It unlocks the key on your computer and is never sent to the server. If you log in with a password, SSH asks for the root password.
Windows
Windows 10 and 11 come with the OpenSSH client already. Open PowerShell or Windows Terminal and run the same command:
ssh root@203.0.113.42The first connection: the host key question
The first time you connect, SSH shows the server's host key fingerprint and asks whether you trust it. Your computer has never seen this server before, so it can't check the key by itself. Typing yes saves it, and from then on SSH warns you if the key ever changes.
If you want to check the fingerprint before you answer, and the server has a root password, log in on the serial console and run:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubThat's the server's ED25519 key. SSH's question names the type of key it's showing, as in ED25519 key fingerprint is SHA256:…, and only fingerprints of the same type can match: for an ECDSA key, check /etc/ssh/ssh_host_ecdsa_key.pub instead, and for RSA, /etc/ssh/ssh_host_rsa_key.pub. To have SSH show the ED25519 key, connect with ssh -o HostKeyAlgorithms=ssh-ed25519 root@203.0.113.42. When the types match, the SHA256: values should be identical. The panel doesn't list host key fingerprints, so without a console login, accepting the key on a fresh server is a trust decision: the risk is small on a server you've only just ordered, but it isn't zero.
First steps once you're in
Update everything first. On Ubuntu and Debian:
apt update && apt upgrade -yIf you log in with a key and didn't set a root password, set one now:
passwdA server ordered with a key was set up not to accept passwords over SSH, and setting a password now doesn't change that setting: SSH keeps taking only keys. The password is for the serial console, which is how you get back in if SSH ever breaks.
If you log in with a password, add an SSH key and then turn password logins off; the SSH hardening checklist shows how. The first-hour checklist covers the rest.
When it won't connect
The error message tells you which way to look:
Connection refused: your computer reached the address, but nothing accepted the connection on port 22. On a server that has only just been built, SSH may still be starting, so wait a minute and try again. Otherwise SSH may have stopped, or a firewall on the server may be refusing the port; check from the serial console withsystemctl status ssh(sshdon AlmaLinux, Rocky Linux and Fedora).Connection timed out: nothing answered at all. Check the address. Then check that nothing on your side blocks port 22 (office and hotel networks sometimes do). If you've turned on a firewall on the server or in the panel, make sure it allows SSH; see Set up a firewall with ufw.Permission denied (publickey)orToo many authentication failures: the network is fine and the server answered, but it didn't accept any key your computer offered. See Fix "Permission denied" below.Permission denied (password)or the password prompt repeats: the password is wrong, or the server was ordered with a key, so its SSH settings don't take passwords. A password you set still works on the serial console.REMOTE HOST IDENTIFICATION HAS CHANGED: expected after a reinstall, because the new system has new host keys. Clear the old one withssh-keygen -R 203.0.113.42and connect again. If you didn't reinstall, stop there and open a support ticket.- Nothing answers at all, not even ping: work through Server unreachable: what to check.
To see exactly where it stops, add -v:
ssh -v root@203.0.113.42Fix "Permission denied"
Permission denied means your computer reached the server and SSH answered, so this is a login problem, not a network one. Work down the list; each step is something we've seen cause it.
1. Check you're using the login you ordered with. A server ordered with an SSH key takes only keys over SSH: offering a password gets Permission denied (publickey) even when the password is right. A server ordered with a password and no key takes the password. The word in brackets lists what the server will accept: (publickey) means keys only, (publickey,password) means either.
2. Check the user and address. Log in as root, at the IPv4 address on the server's page in the panel. After a reinstall or a move to another server, an old address in your shell history or ~/.ssh/config is an easy mistake.
3. Name the key, and only that key. If you have several keys, SSH tries each one it can find, and the server stops counting after a few wrong ones, which is where Too many authentication failures comes from. Point SSH at the right file and tell it not to try the others:
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 root@203.0.113.42In PowerShell on Windows:
ssh -o IdentitiesOnly=yes -i $env:USERPROFILE\.ssh\id_ed25519 root@203.0.113.42To see which keys your SSH agent is offering, run ssh-add -l on your computer. To check which key the server should have, compare ssh-keygen -lf ~/.ssh/id_ed25519.pub with the fingerprint shown for that key in the panel's keys page.
4. On Windows, check the key file's permissions. If the output includes WARNING: UNPROTECTED PRIVATE KEY FILE! and This private key will be ignored, Windows' SSH refused to use the key because other users on the PC can read it. This happens with keys copied from somewhere else. Make the file readable only by you, in PowerShell:
icacls $env:USERPROFILE\.ssh\id_ed25519 /inheritance:r
icacls $env:USERPROFILE\.ssh\id_ed25519 /grant:r "$($env:USERNAME):(R)"5. Check the server's side, from the serial console. If you have a root password, log in on the serial console and look at why SSH refused you:
journalctl -u ssh --since "-15 min" --no-pager | tail -20(The unit is sshd on AlmaLinux, Rocky Linux and Fedora.) Two lines worth knowing:
Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys: SSH ignores the key file because someone else could write to it. Fix the permissions withchmod 700 /root/.sshandchmod 600 /root/.ssh/authorized_keys, then try again.- No line for your attempt at all: first make sure you're reading the right log. Check the unit name for your system, widen the window (
--since "-1 hour"), and on a server that logs to files instead, look in/var/log/auth.log(Ubuntu, Debian) or/var/log/secure(AlmaLinux, Rocky). If your attempt still isn't there, your connection may be reaching a different machine or address: go back to step 2.
To check that your key is on the server, run ssh-keygen -lf /root/.ssh/authorized_keys: it lists the fingerprint of every key that can log in as root. If yours is missing, add it.
6. If you have no way in at all, with no working key and no password, Get back into a server you're locked out of shows the ways back in that keep your disk.
When you open a ticket about it, include the ssh -v output and which of the steps above you tried. It doesn't print your private key or password, but it does show user names, host names, addresses, file paths on your computer and key fingerprints, so replace anything you'd rather not share before you send it. Never attach a private key or a password.
We reproduced each of these on our own Ubuntu 24.04 and Debian 13 servers on 6 November 2026, with OpenSSH on Linux and on Windows 11.
Every server also has a serial console in the panel that reaches it without going through the network, for the times SSH itself is what's broken. It needs a root password. If you have neither a working key nor a password, rescue mode lets you set one without erasing the disk.