Skip to main content

Ed25519 & RSA SSH Key Generator

Browser-side OpenSSH key pair generator using WebCrypto API

OpenSSH Key Pair Generator

Client-Side Security: Keys are generated with the Web Crypto API, 100% locally in your browser — private keys never leave your device. Public keys use the standard OpenSSH format. Ed25519 private keys use OpenSSH format; RSA private keys use unencrypted PKCS#8 PEM. Protect the downloaded private key and restrict its local file permissions.

The public key appears here after generation and can be added to an SSH server's authorized_keys file.

The private key is created locally and remains in this open tab until you leave or reload the page.

Was this Ed25519 & RSA SSH Key Generator helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with Ed25519 & RSA SSH Key Generator

  • Generate ssh key pair
  • Create ed25519 ssh key

How this security utility works

Generate Ed25519 or RSA 2048/4096 SSH key pairs in your browser with Web Crypto. Public keys use the OpenSSH line format; Ed25519 private keys use OpenSSH format and RSA private keys use unencrypted PKCS#8 PEM.

Example input

Key Type: Ed25519, Key Comment: [email protected]

Example output

Public Key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK... [email protected]
Private Key: -----BEGIN OPENSSH PRIVATE KEY-----...

Practical workflow

  1. Choose Ed25519 or RSA with a 2048-bit or 4096-bit modulus; these are the options exposed by this tool.
  2. Enter an optional key comment (such as your email address or host identifier).
  3. Click Generate to create the key pair using browser Web Crypto support.
  4. Copy or download the public key (.pub) for authorized_keys and save the private key safely.

Common use cases

  • Generating deploy keys for CI/CD pipelines and automated GitHub Actions workflows.
  • Creating SSH authentication keys for new cloud servers on AWS, DigitalOcean, and Linode.
  • Replacing deprecated 1024-bit RSA keys with Ed25519 or RSA 2048/4096 keys supported by your SSH clients and servers.

Important notes and limitations

  • Key generation uses browser Web Crypto; private-key bytes stay in page memory and are not uploaded or persistently saved by this tool. Ed25519 generation requires browser support.
  • The public key is standard OpenSSH format. Ed25519 private keys use the OpenSSH private-key format; RSA keys are unencrypted PKCS#8 PEM. Protect the file and restrict its local permissions after download.

Terminal & CLI equivalents

Generate modern Ed25519 key (Recommended)

ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519

Creates a modern 256-bit elliptic curve SSH key with superior security and speed.

Generate legacy RSA-4096 key

ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/id_rsa

Generates a traditional 4096-bit RSA key for older enterprise servers and appliances.

Inspect public key fingerprint

ssh-keygen -lf ~/.ssh/id_ed25519.pub

Displays the SHA-256 fingerprint, bit length, and comment of an SSH public key.

SSH Key Type Security & Compatibility Matrix

AlgorithmKey SizeEquivalent SecurityPerformanceCompatibility
Ed25519256 bits (68 chars)~128 bits (RSA-3072+)Fastest (<1ms)OpenSSH 6.5+ (All modern Linux, macOS, GitHub, GitLab)
RSA 40964096 bits (736 chars)~140 bitsModerate (~15ms)Universal (Legacy appliances, vintage Unix, all SSH servers)
ECDSA P-256256 bits (140 chars)~128 bitsFast (<2ms)NIST curve; potential vulnerability to biased RNG implementations

Common errors & troubleshooting

Permissions 0644 for 'id_ed25519' are too open / UNPROTECTED PRIVATE KEY FILE!

Cause: OpenSSH requires private key files to be exclusively accessible by the file owner.

Solution: Run 'chmod 600 ~/.ssh/id_ed25519' in terminal to restrict file permissions.

Continue your workflow

Frequently asked questions

Why is Ed25519 generally preferred over RSA for SSH keys?

Ed25519 public keys are compact and generation and signing are typically efficient. RSA may be needed for older systems; choose an algorithm supported by the servers and clients you use, and protect the private key in either case.

Is it safe to generate an SSH key pair inside a web browser?

The tool creates keys with the browser Web Crypto API. Private-key bytes remain in page memory and are not uploaded or saved by the site; copying or downloading the private key is an explicit action you control.

What file permissions must I give to my downloaded private key?

On Linux or macOS, restrict the downloaded private key to its owner, for example: chmod 600 ~/.ssh/id_ed25519. Use id_rsa as the filename for an RSA key.

What private-key format does this tool download?

Ed25519 downloads use the native OpenSSH private-key format. RSA 2048 and RSA 4096 downloads use unencrypted PKCS#8 PEM, which the tested OpenSSH ssh-keygen command can read.