Skip to content

SSH Key Generator

Embed

Paste this where you want SSH Key Generator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/ssh-key-generator/" width="100%" height="500" frameborder="0" loading="lazy" title="SSH Key Generator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/ssh-key-generator/">SSH Key Generator</a> by BrowserUtils</p>

Generate RSA key pairs using Web Crypto API.Runs in this tab.

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

About 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.

More in Security & Privacy

All 10 security & privacy