PT Privacy Tools

SSH Key Generator

Generate Ed25519 or RSA SSH key pairs in OpenSSH format with ssh-keygen style SHA256 fingerprints. Runs locally with Web Crypto, no uploads.

πŸ”’ Runs entirely in your browser β€” nothing is uploaded

Keys are generated with your browser's Web Crypto API. Nothing is uploaded.

Was this tool useful? Rate it:

Generate SSH keys without installing anything

SSH keys let you log in to servers and push to Git hosts such as GitHub or GitLab without typing a password. This generator creates the key pair with your browser's built-in Web Crypto API and encodes it exactly like ssh-keygen: the public key is a single line such as ssh-ed25519 AAAA… you@laptop, and the private key is an -----BEGIN OPENSSH PRIVATE KEY----- file that OpenSSH, PuTTYgen and modern Git clients read directly. The SHA256 fingerprint shown is computed the same way as ssh-keygen -lf, so you can compare it with what a server or Git host displays. No part of the key is sent over the network.

Ed25519 or RSA?

Ed25519 is the best choice for almost everyone. Its keys are tiny, signing is fast, and it avoids several pitfalls of older algorithms. It has been supported since OpenSSH 6.5 and is accepted by every major Git host and cloud provider. RSA is still useful for old appliances, legacy servers or strict corporate policies; if you need it, prefer 3072 or 4096 bits over 2048. Ed25519 in Web Crypto needs a recent browser; when it is unavailable the tool tells you and switches to RSA automatically.

Protect and install your keys

The private key is generated without a passphrase so that any SSH client can read it. Save it as ~/.ssh/id_ed25519 (or id_rsa), restrict its permissions with chmod 600, and then add a passphrase locally with ssh-keygen -p -f ~/.ssh/id_ed25519. Never email the private key or paste it into chat. Copy only the public key to the server's ~/.ssh/authorized_keys file or to your account's SSH key settings. Use a separate key for each device, so that you can revoke a lost laptop's key without affecting the others.

How to use

  1. Pick a key typeChoose Ed25519 (recommended) or RSA 2048/3072/4096 and optionally add a comment such as your email.
  2. GenerateThe key pair is created locally and shown as an OpenSSH public key line and private key file with its SHA256 fingerprint.
  3. Install the keysSave the private key in ~/.ssh with chmod 600 and add the public key to authorized_keys or your Git host.

Frequently asked questions

Are the keys generated on a server?
No. The key pair is created with your browser's Web Crypto API and encoded to OpenSSH format by JavaScript on this page. Nothing is uploaded.
Should I choose Ed25519 or RSA?
Ed25519 is recommended: short keys, fast and secure, supported by OpenSSH 6.5+, GitHub, GitLab and most servers. Use RSA 3072 or 4096 only for legacy systems that lack Ed25519.
Why is Ed25519 disabled in my browser?
Ed25519 in Web Crypto requires a recent browser (Chrome 137+, Firefox 129+, Safari 17+). On older browsers, choose RSA or update your browser.
How do I add a passphrase?
Save the private key, then run ssh-keygen -p -f ~/.ssh/id_ed25519 and enter a new passphrase. OpenSSH re-encrypts the file locally.