Ssh Key Generator
Fast, accurate and free online ssh key generator tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Rate this tool:
Related tools
Other tools you may find usefulSSH Key Generator - Create Secure Key Pairs
SSH Key Generatorcreates cryptographic key pairs (private and public) supported by the SSH protocol. Select the algorithm (RSA, Ed25519, ECDSA), key size and optional comment - client-side generated keys do not leave your browser.
SSH key types and characteristics
Ed25519- recommended choice. Based on the elliptic curve Curve25519, it offers excellent security with short keys (256 bits). Faster than RSA, resistant to timing attacks, supported by OpenSSH since version 6.5 (2014). For new keys, always select Ed25519.RSA- a classic, widely compatible algorithm. Recommended size: 4096 bits (2048 is the minimum). Older hardware and software support RSA. Slower than Ed25519 with the same security levels.ECDSA- based on NIST P-256/P-384/P-521 elliptic curves. Faster than RSA, but NIST curves are controversial in cryptography (possible NSA backdoors). Ed25519 is a safer choice.
How to use the generator?
Select the algorithm and key size. Add an optional comment (usually user@hostname, e.g. john@laptop). The generator creates a key pair: public key (id_ed25519.pub) - can be shared, pasted into authorized_keys on servers, added to GitHub/GitLab, private key (id_ed25519) - NEVER share, store safely locally. Optionally encrypt the passphrase private key.
Installing SSH Keys
Copy the public key to the server:ssh-copy-id -i ~/.ssh/id_ed25519.pub [email protected]or manually join~/.ssh/authorized_keyson the server. For GitHub/GitLab: Settings → SSH Keys → paste the public key content. File permissions:chmod 700 ~/.ssh; chmod 600 ~/.ssh/id_ed25519; chmod 644 ~/.ssh/id_ed25519.pub.
SSH key security
Key security rules: always protect your passphrase private key, use ssh-agent to avoid entering passphrase multiple times, rotate keys regularly (at least annually or after an incident), separate key for each environment (dev/staging/prod), remove keys from authorized_keys of employees who have left the project, consider SSH certificates (ssh-ca) for large organizations instead of managing authorized_keys.
FAQ
Why is Ed25519 better than RSA?
Ed25519 offers comparable security to RSA-3072 with a 256-bit key. It is faster (signing and verification), more tolerant to implementation errors (RSA is susceptible to timing attacks when poorly implemented), has a smaller key size in authorized_keys, and offers better privacy thanks to the mathematical properties of Curve25519.
Are browser-generated keys safe?
The generator uses the WebCrypto API, a built-in browser cryptographic interface that uses a system-wide pseudo-random number generator (CSPRNG). Keys are generated locally and are not sent to any servers. Don't store your private keys in the cloud - download and save locally. For production environments, it is best to generate keys viassh-keygenin the terminal.
What is an SSH key passphrase and is it necessary?
A passphrase is a password that encrypts a private key on disk - even if someone steals the key file, they can't use it without the passphrase. Passphrase is HIGHLY recommended for keys used for critical systems. Use ssh-agent to enter the passphrase once and not repeat it every time you login.
How to add an SSH key to GitHub?
Copy the contents of the public key (id_ed25519.pub). Go to GitHub: Settings → SSH and GPG keys → New SSH key. Paste the key, give it a title (e.g. "MacBook Jan 2024"), save. Test:ssh -T [email protected]. Once added, you can clone repositories via SSH instead of HTTPS.