SSH Key Pair Generator

Choose an algorithm and optional public-key comment, then generate and copy or download an unencrypted SSH key pair in your browser.

Use the SSH Key Pair Generator

Key Settings

Appended to the public key line for identification.

Generated private keys are unencrypted. Add a passphrase afterward with ssh-keygen -p on a trusted local machine.

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

Summary

Choose an algorithm and optional public-key comment, then generate and copy or download an unencrypted SSH key pair in your browser.

How it works

  1. Select an algorithm from the dropdown: Ed25519 (recommended and fastest), RSA-2048, or RSA-4096.
  2. Enter a comment in the Comment field — this appears at the end of the public key and identifies the key (e.g., user@host).
  3. Click the Generate Key Pair button and wait — RSA-4096 may take a few seconds.
  4. 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.
  5. Protect the downloaded private key with ssh-keygen if passphrase encryption is required.

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-09-22 · Reviewed by Nham Vu