How to Generate and Use SSH Keys
SSH keys beat password-only logins. You create a pair on your PC, install the public key on the server, and connect with the private key.
Steps
On your local machine, generate an Ed25519 key pair (recommended):
ssh-keygen -t ed25519 -C "[email protected]"Copy the public key to the VPS (replace user and IP):