SSH Key Generator
SSH public-key login replaces a reusable password with a key pair. Ed25519 is the modern default; RSA 4096 remains for older appliances. The private key never needs to leave this device. If it does, it is compromised. Generate here only when you cannot use ssh-keygen on a trusted machine.
What the SSH key generator is for
SSH keys replace passwords for server access with a key pair: a public key you install on the server and a private key you keep. Nothing secret crosses the network during login, so there is no password to intercept, guess, or reuse.
This is why nearly every hosting provider and Git platform prefers keys, and why brute-force attempts against key-only servers simply fail.
Common uses
- Learning how a key pair is structured before setting one up
- Producing a demonstration key pair for documentation or training
- Generating a throwaway pair for a lab or test environment
- Understanding the difference between the public and private halves
What the output means in the real world
You get a public key (safe to paste into authorized_keys, GitHub, or a cloud metadata field) and a private key (never email, never commit, never ticket). Save the private key into ~/.ssh with 0600 permissions or into an agent. If the private block was copied to chat, delete that key on every host and generate another.
How this fits into real work
Git hosts and cloud VM serial consoles still accept RSA 2048. Prefer Ed25519: smaller keys, no PKCS#1 padding traps, and fast. Keep RSA 4096 only when a vendor firmware refuses Ed25519.
A private key in a Git repo is a standing incident. Secret scanners look for BEGIN OPENSSH PRIVATE KEY. Rotate, purge history if you must, and move to an agent or hardware key.
Passphrase-protect the private key. An unlocked key file on a stolen laptop is shell access to every host that trusts the public half. Hardware tokens (FIDO2) beat files when the threat includes device theft.
How to use this tool
- Choose a key size. RSA 2048 is the practical minimum; 4096 is stronger and still fast enough to use daily.
- Press Generate and wait a moment — real key generation takes measurable time.
- Copy the public key to the server, appending it to ~/.ssh/authorized_keys.
- Keep the private key on your own machine only, with permissions set to 600.
Tips
- For production keys, prefer generating them locally with ssh-keygen -t ed25519 — Ed25519 is faster and shorter than RSA at equivalent security.
- Always protect a real private key with a passphrase, so a stolen laptop does not hand over your servers.
- Never send a private key by email or chat. Only the public half is ever shared.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. Keys are produced by the browser's Web Crypto API. For keys guarding real infrastructure, generate them with ssh-keygen on the machine that will use them rather than in any browser.
Frequently asked questions
- Is it safe to generate SSH keys in a browser?
- The generation itself uses the browser's cryptographic API and nothing leaves your machine. For production infrastructure, though, best practice is ssh-keygen locally — it avoids trusting the page entirely and supports Ed25519.
- RSA or Ed25519?
- Ed25519 where supported: shorter keys, faster operations, and strong security. RSA 4096 remains a fine choice for older systems that lack Ed25519 support.
- What is the difference between the public and private key?
- The public key is installed on servers and can be shared freely. The private key stays with you and proves your identity — anyone holding it can log in as you.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.