SSH Key Generator
Generate RSA key pairs using Web Crypto API.Runs in this tab.⌘ ↵ runs it
Note: This generates RSA key pairs using the Web Crypto API in PEM (SPKI/PKCS8) format. These are standard RSA keys, not SSH-native format. For production SSH keys, use
ssh-keygen on your machine. Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout SSH Key Generator
Free online SSH key generator. Generate RSA key pairs in PEM format using the Web Crypto API directly in your browser. It runs in your browser. Nothing is sent to a server.
Questions
Are keys generated in the browser secure?
Keys are generated entirely in your browser using the Web Crypto API and never leave your device. However, for production SSH keys, it is recommended to use ssh-keygen on your local machine, which produces keys in the native OpenSSH format and can write them directly to your .ssh directory.
What key size should I choose?
A 2048-bit RSA key is considered secure for most purposes today. A 4096-bit key provides additional security margin but takes longer to generate and process. For new deployments, consider Ed25519 keys (via ssh-keygen) which offer better security with shorter key lengths.
How do I use the generated SSH key to connect to a server?
Copy the public key and add it to the ~/.ssh/authorized_keys file on your server. Save the private key to ~/.ssh/ on your local machine and set its permissions to 600. Then connect using ssh -i ~/.ssh/yourkey user@host.
What is the difference between the SSH public key and private key?
The public key is shared with servers you want to access. The private key stays on your device and must never be shared. Authentication works because the server uses the public key to verify a signature that only the matching private key can produce.
Can I use the generated SSH key with GitHub?
You can paste the public key into your GitHub account under Settings > SSH and GPG keys. For production use, generating keys with ssh-keygen on your machine is preferred since it writes the keys in native OpenSSH format.
Comments
More in Security & Privacy
- robots.txt Generator
- CSP Header Generator
- Chmod Calculator
- .htpasswd Generator
- SRI Hash Generator
- PGP Key Generator
- Password Strength Checker
- CORS Tester
Comments