Guides · VPS
Log in with an SSH key
Create a key → public key into the SSH keys tab.
1. Create a key (on your PC)
Same command in Windows PowerShell or Mac Terminal:
ssh-keygen -t ed25519
Press Enter three times (default path · no passphrase), or set a key passphrase.
| PC | Show public key |
|---|---|
| Windows | type $env:USERPROFILE\.ssh\id_ed25519.pub |
| Mac · Linux | cat ~/.ssh/id_ed25519.pub |
ssh-ed25519 AAAA… is the start of your single-line public key. Never share the file without .pub (private key).
2. Add it in the store
- Service page → SSH keys → Name (optional) · paste Public key → Add key.
- Applied immediately when running. If off: Pending → applied when started.
- Stored in
/root/.ssh/authorized_keys. Lines added manually on the server stay. - You can also add a public SSH key when ordering or reinstalling.
3. Connect
ssh root@PUBLIC_IP
You should connect without entering the server password.
4. Disable password login (optional)
Verify key login first. Keep the current session open while making this change.
nano /etc/ssh/sshd_config.d/00-vps.conf- Change these two lines:
PermitRootLogin prohibit-password PasswordAuthentication no - Apply: Ubuntu · Debian
systemctl restart ssh· Rocky · CentOSsystemctl restart sshd. - Verify
ssh root@PUBLIC_IPworks in a new window.
If you lose the key, use your password in the service page's web Console.