"Permission denied (publickey)" – what now?
The server does not know the key you are logging in with. Check in this order:
- Right user? On virtual servers you log in as
root. - Right key? Pass it explicitly:
ssh -i ~/.ssh/id_ed25519 root@YOUR-IP. - Key on the server? If the server was installed without this key, log in via the console in the customer area and add it (see Add an SSH key later) – or reinstall and select the key.
Other errors:
- Connection refused / timeout: Is the server running? Does the firewall allow port 22?
- REMOTE HOST IDENTIFICATION HAS CHANGED: Normal after a reinstall. Remove the old entry with
ssh-keygen -R YOUR-IPand connect again.
Was this helpful?