ssh-keygen -t ed25519 -C "my-laptop"
cat ~/.ssh/id_ed25519.pub
Add the public key in Settings → SSH keys; pick it when ordering or reinstalling. For a running server: ssh-copy-id root@<IP>.
Disable password logins once the key works:
sed -i 's/^#\?PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config && systemctl restart ssh
