SSH Key Pair Generator
Choose an algorithm, enter a comment, optionally add a passphrase, then click Generate. Copy or download the public and private keys.
Key Settings
Appended to the public key line for identification.
Use
ssh-keygen on your own machine for production keys; this tool is for testing and learning.
Public Key
One line — paste into ~/.ssh/authorized_keys
Private Key
OpenSSH PEM format — keep this secret
Key fingerprint (SHA-256)
Summary
Choose an algorithm, enter a comment, optionally add a passphrase, then click Generate. Copy or download the public and private keys.
How it works
- Select an algorithm from the dropdown: Ed25519 (recommended and fastest), RSA-2048, or RSA-4096.
- Enter a comment in the Comment field — this appears at the end of the public key and identifies the key (e.g., user@host).
- Optionally type a passphrase. The strength meter will show how strong it is. Leave it blank for an unencrypted key.
- Click the Generate Key Pair button and wait — RSA-4096 may take a few seconds.
- Copy the Public Key (one line, for ~/.ssh/authorized_keys) and the Private Key (multi-line PEM block) using the Copy buttons, or download them as files.
Use cases
- Quickly generate a throw-away Ed25519 key pair for testing SSH access to a new server.
- Produce an RSA-4096 key pair when a legacy system requires RSA rather than Ed25519.
- Demonstrate SSH key-pair concepts and OpenSSH key formats in a learning or classroom environment.
- Generate a key pair for a CI/CD pipeline proof-of-concept without installing extra tools.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu