Tools / SSH Key Generator

SSH Key Generator.

Generate Ed25519, ECDSA or RSA SSH keys in OpenSSH format with fingerprint and randomart.

Runs in your browser

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Public key (authorized_keys / GitHub)
Private key (OpenSSH)
Randomart
Details

About SSH Key Generator

This tool does what ssh-keygen does when you are on a machine without a terminal: it creates an SSH key pair and gives you the two files OpenSSH expects. The public key is a single line such as ssh-ed25519 AAAAC3Nza… jane@laptop that you paste into GitHub, GitLab, Bitbucket, a cloud console or a server's ~/.ssh/authorized_keys. The private key is written in the openssh-key-v1 format (-----BEGIN OPENSSH PRIVATE KEY-----) that ssh, ssh-add, Git and PuTTYgen import directly; save it as ~/.ssh/id_ed25519 and run chmod 600 on it, or SSH will refuse to use it. Ed25519 is the recommended type: short keys, fast signatures and support in every OpenSSH release since 6.5. ECDSA keys on the NIST curves and RSA keys of 2048 to 4096 bits are available for older servers and hardware that require them. The details show the SHA256 fingerprint exactly as ssh-keygen -l prints it, and the randomart picture matches ssh-keygen -lv, so you can compare a key at a glance. The private key is not protected by a passphrase; add one locally with ssh-keygen -p -f ~/.ssh/id_ed25519. Typical mistakes are uploading the private key instead of the .pub line, wrong file permissions, line breaks inserted into the public key by an editor, and reusing one key on every device instead of one key per device. Keys are generated in your browser with the Web Crypto API and never sent to a server.

How to Use

  1. Choose the key type (Ed25519 recommended) and an optional comment.
  2. Press Run, then save the private key as ~/.ssh/id_ed25519 with permissions 600.
  3. Add the public key line to GitHub or to the server's ~/.ssh/authorized_keys.

Frequently Asked Questions

Which key type should I use?

Ed25519 for almost everything. Use RSA 3072 or 4096 only for legacy systems that do not accept Ed25519, and ECDSA when a policy or a hardware token requires NIST curves.

How do I add a passphrase?

Save the private key and run ssh-keygen -p -f path/to/key. OpenSSH encrypts it with your passphrase in place.

Is the private key compatible with PuTTY?

Yes. Open PuTTYgen, choose Load, select the private key file and save it as a .ppk file.

Are the keys generated on your server?

No. They are generated in your browser and never uploaded, logged or put in the URL. Close the tab after saving them.

Related Tools