SSH keys provide a more secure alternative to password-based server login, using cryptographic key pairs instead.
Generating a Key Pair
Running ssh-keygen on your local computer creates a private key (kept secret on your machine) and a public key (safe to share with servers you want to access).
Adding Your Public Key to a Server
Copying your public key into the server's authorized_keys file lets you log in using your private key instead of typing a password every time.
Why It's More Secure
A private key is far harder to brute-force than even a strong password, and it can't be phished the same way a typed password can.
Español
Deutsch