Last updated
Last updated
SSH (Secure Shell) keys are cryptographic keys used to securely connect to a server without needing to enter a password. They consist of a pair of keys: a public key and a private key.
Different algorithms can be used to generate SSH keys. Each has its own strengths and weaknesses, depending on the level of security and compatibility needed.
RSA: Choose if you need broad compatibility, especially with older systems.
ED25519: Recommended for most users due to its security and efficiency.
ECDSA: Consider if you need high security with smaller key sizes for specialized environments.
Open a terminal.
Generate the key:
For ED25519 (recommended):
Follow the prompts:
When asked where to save the key, press Enter to accept the default location unless you need to save it elsewhere.
Set a passphrase if you want extra security.
Final Steps:
Your public and private keys are now generated.
You can add it to your Git platforms (GitHub, Gitlab, etc.)