toolqik

41 · Keys & Auth

SSH Key Generator

OpenSSH key pairs (Ed25519 or RSA) ready to save as id_ed25519 and .pub.

Runs in your browser
Key type
Public key (share this)

  
Private key (keep secret, no passphrase yet)

  
Next steps

  

About this tool

SSH keys let you log in to servers and push to GitHub, GitLab or Bitbucket without a password. This generator creates a key pair in exactly the format ssh-keygen produces: a private key file (-----BEGIN OPENSSH PRIVATE KEY-----) and a one-line public key, with the same SHA256 fingerprint ssh-keygen -l shows.

Keys are generated by your browser’s Web Crypto API and never leave this page: nothing is uploaded, logged or stored. For production servers, generating keys on the machine that will use them (with openssl or ssh-keygen) is still best practice.

If you have a terminal, the standard command is still the best option: ssh-keygen -t ed25519 -C "you@example.com". Use this page when you can’t run it, for example on a locked-down machine, or to learn what the files contain.

How to use the keys

  1. Download both files into ~/.ssh/ (on Windows, C:Usersyou.ssh), keeping the names id_ed25519 and id_ed25519.pub.
  2. Add a passphrase with ssh-keygen -p -f ~/.ssh/id_ed25519. The downloaded private key isn’t encrypted, so anyone who copies the file can use it until you do.
  3. Add the public key to the server’s ~/.ssh/authorized_keys, or paste it into GitHub under Settings → SSH and GPG keys.
  4. Test with ssh -T git@github.com or ssh user@server.

Ed25519 or RSA?

Choose Ed25519: it’s the default in current OpenSSH, with short keys and fast, strong signatures. Use RSA 3072 or 4096 only for old servers or appliances that don’t support Ed25519 (OpenSSH older than 6.5, from 2014).

FAQ

How do I generate an SSH key?

Choose Ed25519, enter a comment and click Generate. Download the private key as id_ed25519 and the public key as id_ed25519.pub into your ~/.ssh folder.

How do I add a passphrase to the key?

Run ssh-keygen -p -f ~/.ssh/id_ed25519 and enter a new passphrase. The key itself doesn’t change, so the public key stays the same.

How do I add the key to GitHub?

Copy the public key (the line starting with ssh-ed25519) and paste it in GitHub under Settings → SSH and GPG keys → New SSH key.

Why does SSH say the key permissions are too open?

SSH refuses private keys that others can read. Run chmod 600 ~/.ssh/id_ed25519 on Linux and macOS.

Which key type is best for SSH?

Ed25519. RSA keys of 3072 bits or more are fine for compatibility with older systems.

esc
↑↓ navigate↵ open