SSH Key Generator
Online SSH key generator supporting RSA 2048/3072/4096 and Ed25519, creating PEM private keys, OpenSSH public keys, and SHA256 fingerprints for server login, Git authentication, and key operations.
Key Configuration
Generated Keys
Configure options and click "Generate Key Pair"
SSH Key Documentation
SSH keys authenticate users with asymmetric cryptography, providing stronger security than password-only login for servers and code hosting services.
This tool generates keys locally in your browser and outputs OpenSSH public keys, PKCS8 private keys, and SHA256 fingerprints.
RSA vs Ed25519
- RSA has broader compatibility for legacy systems
- Ed25519 is shorter, faster, and strong for modern deployments
- Prefer Ed25519 for new projects and keep RSA for compatibility
Usage Steps
- Select algorithm, set comment, then generate key pair
- Append the public key to ~/.ssh/authorized_keys on server
- Store private key in local ~/.ssh/ directory securely
- Verify login with ssh or Git client
Windows Tips
- Store private key under C:\Users\<user>\.ssh\
- Test connection using PowerShell ssh command
- Convert private key to .ppk when using PuTTY
GitHub / GitLab Setup
- Copy the generated public key
- Open SSH Keys in platform settings
- Paste, save, and test repository access
Security Best Practices
- Never expose private key or commit it to repositories
- Use separate key pairs for different hosts and services
- Rotate keys periodically and remove old public keys
- Manage private keys on trusted and controlled devices
FAQ
- Lost private keys cannot be recovered; regenerate and replace server public key.
- Public keys are shareable; private keys must stay private.
- Test with ssh -o PreferredAuthentications=publickey user{'@'}server.