When a server is delivered, the client area shows its main IPv4 address, its IPv6 prefix and the operating system you chose, and the delivery email repeats them. If your account holds an SSH key, the key is already installed for the root user and no password is set. Without a key, a one-time password appears once on the Access tab of the server and stops working after your first login.
1. Check the host key before you trust it
The first connection asks you to accept the host key of the server. Compare its fingerprint with the one on the Access tab, which we read from the machine at the end of the installation. If they differ, you are not talking to your server: stop and open a ticket.
ssh root@203.0.113.10
# The authenticity of host '203.0.113.10' can't be established.
# ED25519 key fingerprint is SHA256:2kN7...
Type yes only when the two fingerprints are identical.
2. Create your own user
Working as root all day turns every typing mistake into a system-wide one. Create a user, give it administrator rights and copy your key to it:
adduser deploy
usermod -aG sudo deploy # Rocky Linux and AlmaLinux: usermod -aG wheel deploy
install -d -m 700 -o deploy -g deploy /home/deploy/.ssh
install -m 600 -o deploy -g deploy /root/.ssh/authorized_keys /home/deploy/.ssh/
Open a second terminal, log in with ssh deploy@203.0.113.10 and run sudo -v to confirm that the new account works before you change anything else.
3. Turn off password logins
Automated scanners try passwords on port 22 within minutes of a server going online. Once your key works, accept keys only:
sudo tee /etc/ssh/sshd_config.d/10-hardening.conf <<'EOF'
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin prohibit-password
EOF
sudo sshd -t && sudo systemctl reload ssh # the service is called sshd on Rocky Linux and AlmaLinux
sshd -t validates the configuration first, so a typing mistake cannot lock you out when the service reloads. Keep your current session open until a new login has worked.
4. Update the system and set a firewall
sudo apt update && sudo apt full-upgrade -y # Debian and Ubuntu
sudo dnf upgrade -y # Rocky Linux and AlmaLinux
Our images open no port apart from SSH. If you turn on a host firewall, allow SSH before you enable it:
sudo ufw allow OpenSSH && sudo ufw enable # Ubuntu
sudo firewall-cmd --permanent --add-service=ssh && sudo firewall-cmd --reload # Rocky Linux and AlmaLinux
Every server sits behind our always-on DDoS filtering, which drops attack traffic at the edge of the network. The host firewall remains the place where you decide which services the internet can reach.
5. If you lock yourself out
Nothing is lost. The iKVM console in the client area gives you the screen and keyboard of the server whatever its network configuration, and the rescue system starts a separate Linux from which you can repair the installed one. Both are described in Use the iKVM console and mount an ISO and Restore a server from the rescue system.