←
Security

SSH Key Generator

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Ed25519, ECDSA and RSA keys for ssh

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Saves as
OpenSSHPUB
Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Offline use
Works without a connection once this page has loaded
Built with
Web Crypto
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Limits
Ed25519 needs Chrome or Edge 137+, Firefox 129+ or Safari 17+; ECDSA and RSA (2048–4096 bits) work in any current browser.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About SSH Key Generator

SSH Key Generator creates a new key pair for ssh and gives you the two files ssh-keygen would write: a private key in the OpenSSH format (BEGIN OPENSSH PRIVATE KEY, openssh-key-v1) and a one-line public key with your comment, ready for ~/.ssh/authorized_keys or the SSH keys page of GitHub, GitLab or Bitbucket. You can pick Ed25519, ECDSA on the NIST P-256 or P-384 curve, or RSA with 2048, 3072 or 4096 bits.

The key pair comes from your browser's Web Crypto API and never leaves the page. If you enter a passphrase, the private key is encrypted the way ssh-keygen does it: aes256-ctr with a key derived by bcrypt_pbkdf from a random 16-byte salt and 24 rounds, the current ssh-keygen default. The page also shows the SHA256 fingerprint and the randomart picture exactly as ssh-keygen -lv prints them, so you can compare them with what a server shows on your first connection. Files from this tool were checked against OpenSSH 10.3.

SSH Key Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use SSH Key Generator

  1. Choose a Key type. Ed25519 is the default; ECDSA and RSA are there for servers and devices that do not accept Ed25519.
  2. Edit the Comment (often your email or user@host) and, if you want the private key encrypted, type a Passphrase. The keys update as you type.
  3. Copy the public key line into ~/.ssh/authorized_keys on the server, or paste it into your Git host's SSH keys settings.
  4. Click Download for both files, move them into ~/.ssh, and run chmod 600 on the private key. Click Generate new key for a fresh pair.

Frequently asked questions

Is a key generated in a web page safe to use?

The key pair is made by crypto.subtle.generateKey, the browser's built-in cryptography, which draws on the operating system's secure random generator. The check numbers and the passphrase salt come from crypto.getRandomValues. Nothing is sent over the network and nothing is stored: when you close or reload the tab, the private key is gone unless you downloaded or copied it. As with any key, do not generate it on a computer you do not trust.

Why is Ed25519 greyed out?

Ed25519 in Web Crypto is new. It works in Chrome and Edge 137 or later, Firefox 129 or later and Safari 17 or later. The page tries to create an Ed25519 key when it opens; if the browser refuses, the option is disabled and ECDSA P-256 is selected instead. ECDSA and RSA keys work in every current browser and are accepted by OpenSSH.

How is the passphrase applied, and can I change it later?

The private key part is encrypted with AES-256 in CTR mode. The 48 bytes of key and IV come from bcrypt_pbkdf with your passphrase in UTF-8, a random 16-byte salt and 24 rounds, the current ssh-keygen default. To change or remove the passphrase later, run ssh-keygen -p -f ~/.ssh/id_ed25519. A forgotten passphrase cannot be recovered.

Which key type should I choose?

Ed25519 gives short keys and fast, strong signatures, and every OpenSSH release since 6.5 accepts it. Choose ECDSA if a device or policy requires NIST curves, and RSA (3072 bits or more) for old systems that know nothing else. RSA keys use the ssh-rsa key format; OpenSSH signs with them using rsa-sha2-256 or rsa-sha2-512, so they still work where SHA-1 signatures are turned off.

How do I check the downloaded files?

Run ssh-keygen -l -f ~/.ssh/id_ed25519.pub: it prints the key size, the SHA256 fingerprint and the comment, which should match this page. ssh-keygen -y -f ~/.ssh/id_ed25519 rebuilds the public key from the private key (it asks for the passphrase if you set one). On Windows, put the files in C:\Users\you\.ssh; chmod is not needed there.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it