1. Home
  2. Developer
  3. SSH Key Generator

SSH Key Generator

Create Ed25519 or RSA SSH key pairs in the browser. The private key never leaves it.

Runs in your browser · No upload

Short and fast, and the current OpenSSH default. Supported by GitHub, GitLab and most servers.

Usually an email or "you@machine". It can be left empty.
The private key is created inside this browser and is not sent to a server, but it stays on screen and in the file you download. Keep it in a password manager or encrypted storage and close this page afterwards. Add a passphrase after downloading with ssh-keygen -p.

How to use

  1. Pick the key type. Use Ed25519 unless an old device or service does not accept it, in which case choose RSA.
  2. Enter a comment that will trail the public key. An email or name@machine is common, and it can be left empty.
  3. A new key pair is created when the page opens and each time you press Generate new key. The SHA256 fingerprint is shown with it.
  4. Paste the public key as a single line into the server’s authorized_keys file, or into the SSH key page of GitHub or GitLab.
  5. Download the private key and save it as id_ed25519 (id_rsa for RSA) in your .ssh folder. On Linux and macOS run chmod 600 on it so only you can read it, or ssh will refuse to use it.

Key types and sizes

Type Public key line starts with Notes
Ed25519 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA… Short and fast. The public key Base64 is always 68 characters.
RSA 2048 ssh-rsa AAAAB3NzaC1yc2EAAAADAQAB… The widest compatibility. The public exponent is 65537.
RSA 3072 same More margin than 2048, slightly slower to generate.
RSA 4096 same The largest. Logins may need a little more computation.

Weak sizes such as RSA 1024 are not offered. Since OpenSSH 8.8 the SHA-1 based ssh-rsa signature scheme is off by default, but RSA keys themselves keep working through rsa-sha2-256 and rsa-sha2-512.

Two private key formats

  • OpenSSH format (-----BEGIN OPENSSH PRIVATE KEY-----): works directly with ssh -i, ssh-add and most Git clients. Running ssh-keygen -y -f on a file made by this tool prints the same public key shown on screen.
  • PKCS#8 PEM (-----BEGIN PRIVATE KEY-----): the standard format read by OpenSSL and programming libraries.

Both hold the same key. The fingerprint is computed from the public key only, so it matches the output of ssh-keygen -l -f yourkey.pub whichever private format you pick.

Keeping the key safe

  • Anyone holding the private key can log in as you. Do not paste it into chat, email or an issue tracker.
  • The downloaded private key has no passphrase. Add one with ssh-keygen -p -f id_ed25519.
  • The public key is safe to share. If the private key is lost or may have leaked, delete the matching line from the server’s authorized_keys and create a new key.
  • For a key guarding an important server, generating it yourself with ssh-keygen on a machine you trust is the most certain route. This tool suits development keys and quick setups.

FAQ

Is the key sent to a server?

No. The key is generated on your device with the browser’s WebCrypto (crypto.subtle), and the public key encoding and fingerprint are computed in this page too. Nothing is transmitted or stored. The private key you see on screen does remain wherever you copy or download it, so handle it with care.

Ed25519 or RSA?

GitHub, GitLab and current OpenSSH servers all support Ed25519, so it is a fine default. If a very old device or an internal system rejects it, use RSA 3072 or larger.

Why can’t I set a passphrase here?

OpenSSH’s encrypted private key format relies on bcrypt-based key derivation, which browsers don’t provide as a standard API. Run ssh-keygen -p -f filename after downloading to add one.

What if it says Ed25519 generation is unavailable?

Ed25519 in WebCrypto is a relatively recent feature. Update the browser or choose RSA.

What is the fingerprint for?

Compare it with the SHA256:... value shown on first connection or in GitHub settings to confirm you are looking at the same key. To compute hashes yourself, try the Hash Generator.

Generated keys are processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.