Connecting for the first time
Use your VPS’s IP address and root password, run the Connect command and type yes to trust the server’s fingerprint. Then switch to key-based login: create a key pair, copy the public key with ssh-copy-id and test the key before disabling password login.
Good habits
Keep one key per computer, protect the private key with a passphrase and add a ~/.ssh/config entry so you never have to retype options. If you rebuild the server and see a “host key changed” warning, the last command removes the old fingerprint.
Read more: how to connect to a VPS via SSH, VPS security checklist and how to back up a VPS.