Generating SSH Keys in Linux
Generating a new SSH key
- Open Git Bash.
- Paste the following command, replacing the email with your GitHub email:
If your system doesn't support Ed25519, use:ssh-keygen -t ed25519 -C "your_email@example.com"
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- Press Enter to accept the default file location.
- Type a secure passphrase when prompted.