Ssh Key Generator

Fast, accurate and free online ssh key generator tool running directly in your browser.

No account
No installation
Free
Instructions
  • 1
    Enter data
    Enter content, paste text or load a file from disk.
  • 2
    Click the button
    The tool will immediately process your data in the browser.
  • 3
    Get the result
    Copy the finished text or save the file to your device.
function runTool() {
  return "Result ready in 0.1s";
}

private key: -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW QyNTUxOQAAACAO6bIyjiGi8ko/qe/IQSobVOiil7LBKHqAO6aD8kUJRwAAAJhicuKlYnLi pQAAAAtzc2gtZWQyNTUxOQAAACAO6bIyjiGi8ko/qe/IQSobVOiil7LBKHqAO6aD8kUJRw AAAECYbJ7BcKo3M6b2eh1VmsMAiI1ntb65thnMJa9duQnZDw7psjKOIaLySj+p78hBKhtU 6KKXssEoeoA7poPyRQlHAAAAD3Rvb2xzdGlAd2VicC5wbAECAwQFBg== -----END OPENSSH PRIVATE KEY----- public key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA7psjKOIaLySj+p78hBKhtU6KKXssEoeoA7poPyRQlH [email protected]

Rate this tool:

Related tools

Other tools you may find useful

Pass it on

Will someone else find this useful?

Send a friend the link. It opens right away, with no account and no fees.

SSH 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.

What to do if I lose my SSH private key?<
Install Webp.pl Have the tools in your own pocket!