Connect to your server with SSH
Log in from Linux, macOS or Windows, fix the usual SSH errors and move from the root password to an SSH key.
You need three things from the panel: the IPv4 address, the user root and the password. Open Instances, find the server, then use Copy next to the address and Reveal password for the login.
Connect#
On Linux and macOS use a terminal; on Windows 10 and 11 use PowerShell (OpenSSH is built in):
ssh [email protected]
Replace the address with yours. The first time, SSH shows the server's fingerprint: type yes. Paste the password (nothing is displayed while you do) and press Enter. Prefer a graphical client? PuTTY works: host is the IPv4, port 22, user root.
When it does not work#
| What you see | Usual cause | What to do |
|---|---|---|
| Connection timed out | Server off, still provisioning, or your network blocks port 22. | Check the status in the panel; Power on if off. Try another network. |
| Connection refused | The SSH service is down. | Open the console and run systemctl status ssh. |
| Permission denied | Wrong password, usually a paste slip. | Reveal password and paste it again. |
| Too many authentication failures | Your SSH agent offers many keys first. | ssh -o PubkeyAuthentication=no [email protected] |
| Remote host identification has changed | You reinstalled, so the fingerprint is new. | ssh-keygen -R 203.0.113.10, then connect again. |
Warning The "host identification has changed" warning is normal after a reinstall. If you did not reinstall, stop: compare the fingerprint in the console with
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubbefore typing any password.
Use an SSH key#
A key cannot be guessed. On your own computer:
ssh-keygen -t ed25519 -C "my-vps"
ssh-copy-id [email protected]
Windows PowerShell has no ssh-copy-id. Log in with the password and append the public key by hand:
mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo "PASTE THE CONTENT OF id_ed25519.pub HERE" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
Open a second terminal and check that the key logs you in. Only then turn passwords off, as shown in the initial server setup.
Why the password works at first#
Our image ships /etc/ssh/sshd_config.d/01-ironbalkans.conf, which enables password login so you can get in the first time. It starts with 01- so sshd reads it first, and sshd keeps the first value it reads: a file you add later cannot override it. Edit that file, not a new one.
More in this section
- Use the console when SSH does not workA text console in your browser that works even when SSH or the network is down: how to open it, log in and what its limits are.
- Install your own system from an ISOBoot a new server from a Linux installer of your choice, finish the installation on a graphical console in your browser and encrypt the disk with LUKS.
- Restart, power off and reinstallWhat each power button does, when a reboot is not enough and exactly what a reinstall erases.
- Initial server setup on Ubuntu 24.04Update the system, create a sudo user, switch to SSH keys, enable a firewall and automatic security updates on a fresh Ubuntu 24.04 server.
