Knowledge Base
Managing SSH keys on your VPS
SSH keys let you sign in without a password and are much harder to guess.
Create a key
On your own computer run ssh-keygen -t ed25519. It creates a private key (keep it secret) and a public key ending in .pub.
Add it
- Open your VPS in the Client Area and go to the SSH keys tab.
- Add your public key (the contents of the
.pubfile). - Connect with
ssh -i path/to/private_key [email protected].
Remove one
Delete it from the same tab, and from ~/.ssh/authorized_keys on the server.
Optional: turn off password logins
Once keys work, set PasswordAuthentication no in /etc/ssh/sshd_config and restart SSH. Test in a second window first, so you do not lock yourself out.