About ssh key generator
An SSH key pair lets you log in to servers and services such as GitHub without a password. The public key goes on the server and the private key stays with you.
Ed25519 or RSA
- Ed25519 is modern, fast and has short keys. It is the usual recommendation.
- RSA works everywhere, including older systems; use at least 3072 bits.
Using the key
- Save the private key file with permissions that only you can read (chmod 600).
- Add the public key line to ~/.ssh/authorized_keys on the server or to your account settings.
- The fingerprint helps you confirm which key is which.
Consider a passphrase
A passphrase protects the key file if the device is lost. Add one with ssh-keygen -p after saving.
A worked example
Generate an Ed25519 pair, save the private key as ~/.ssh/id_ed25519 with permissions 600 and paste the public key line into your server's ~/.ssh/authorized_keys or your Git hosting account. Test with ssh -T [email protected] or ssh user@host.
