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

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

  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. Optionally type a passphrase. The strength meter will show how strong it is. Leave it blank for an unencrypted key.
  4. Click the Generate Key Pair button and wait — RSA-4096 may take a few seconds.
  5. 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