Skip to content
Jellykit

SSH Key Generator

Generate an id_ed25519 or id_rsa SSH key pair with a comment, ready to paste into authorized_keys or GitHub, with no install.

  • Runs on your device
Loading tool

About SSH Key Generator

Set up SSH access from a machine where you cannot run ssh-keygen, or just get a key quickly. This page opens on an Ed25519 key, the type GitHub, GitLab and current OpenSSH recommend. Add a comment such as you@laptop so you can tell your keys apart, then copy the public key line into authorized_keys or your Git host’s settings and save the private key as ~/.ssh/id_ed25519.

If a server only accepts RSA, choose an RSA size and the files become id_rsa and id_rsa.pub. The fingerprint shown matches what ssh-keygen -l prints. Keys are generated in your browser and never uploaded.

How it works

  1. The pair is made by crypto.subtle.generateKey, the browser’s own Web Crypto implementation, and exported in raw form.
  2. PEM wraps the standard DER encodings (SPKI for the public key, unencrypted PKCS #8 for the private key) in Base64 at 64 characters a line.
  3. OpenSSH output is assembled from the key’s numbers in the SSH wire format: the public key as one authorized_keys line, the private key as an unencrypted openssh-key-v1 file, with the SHA-256 fingerprint ssh-keygen would show.
  4. JWK output removes Web Crypto’s own fields and sets kid to the key’s RFC 7638 thumbprint, so the public and private halves can be matched.

Questions

Where do I save the files?

On Linux and macOS, save the private key as ~/.ssh/id_ed25519 (or id_rsa) and run chmod 600 on it, otherwise ssh refuses to use it. The .pub file sits beside it. On Windows the folder is %USERPROFILE%\.ssh.

Does the private key have a passphrase?

No, it is saved unencrypted. Add one on your own machine with ssh-keygen -p -f ~/.ssh/id_ed25519; the key itself stays the same.

Is it safe to make SSH keys in a browser?

The key comes from the browser’s Web Crypto generator and never leaves this page. For a high-value server you may still prefer ssh-keygen on the machine that will hold the key, so the private key never exists anywhere else.

Which key types can I make?

Ed25519 (the default here), ECDSA on the P-256 or P-384 curve, and RSA at 2048, 3072 or 4096 bits. Pick Ed25519 unless a server or appliance only accepts RSA; choose RSA 3072 or 4096 for a new RSA key, since 2048 is the minimum most services still accept.

What does the fingerprint tell me?

It is the SHA256:… line that ssh-keygen -l -f prints and that GitHub, GitLab and ssh itself show when they meet the key. Compare it with the fingerprint a server or Git host displays to confirm that the key you added is the one you just made.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.