SSH Key Generator
Generate an Ed25519 or RSA SSH key pair in the browser, in the same OpenSSH format ssh-keygen writes, with the authorized_keys line and fingerprint.
Free · No sign-up · Your inputs stay in your browser
Input
Generate an SSH key pair
Output
Press Generate
Same file format as ssh-keygen writes, without a passphrase. Save the private key as ~/.ssh/id_ed25519 with chmod 600, or add a passphrase afterwards with ssh-keygen -p -f ~/.ssh/id_ed25519. Ed25519 is what GitHub and OpenSSH recommend; use RSA only for systems that predate it.
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
Ed25519 first
Ed25519 keys are short, fast and have no weak parameter choices, and OpenSSH, GitHub and GitLab recommend them. Use RSA, at 3072 bits or more, only for systems that predate OpenSSH 6.5 or hardware that does not support Ed25519. The format written here is described in OpenSSH's PROTOCOL.key.
Installing the key
Save the private key as ~/.ssh/id_ed25519 with chmod 600, or ssh refuses to use it. Add a passphrase with ssh-keygen -p -f ~/.ssh/id_ed25519. Put the public line in the server's ~/.ssh/authorized_keys, or use ssh-copy-id. On your own machine, ssh-keygen -t ed25519 -C [email protected] does the same without the key ever being in a browser.