SSH Key Generator

Generate SSH key pairs for secure authentication.

Generate an SSH key pair in your browser: Ed25519 (recommended), ECDSA P-256, or RSA 3072 or 4096. Add a comment such as user@host, then download the public key (.pub) and the private key in OpenSSH format, with the key's SHA-256 fingerprint and randomart. Keys are made with the Web Crypto API and never leave the page. The private key has no passphrase, so add one with ssh-keygen -p after saving it, or generate keys with ssh-keygen if you can.

Usually user@host; it helps you recognise the key later.

Keys are generated by your browser's Web Crypto API and never leave this page.

Common use cases

  • Make an SSH key on a computer without ssh-keygen
  • Create a key for a test server or a deploy key
  • Generate a key to add to GitHub, GitLab or a cloud server

How to use

  1. Choose the key type and enter a comment.
  2. Press Generate.
  3. Download both files to ~/.ssh/ and run chmod 600 on the private key.
  4. Add the public key to the server or service.

FAQ

Which key type should I use?

Ed25519: short, fast and secure, and supported by OpenSSH since 2014 and by GitHub and GitLab. Use RSA 3072 or 4096 only for old systems.

Is it safe to make keys in a browser?

The key is made locally with your browser's cryptographic random generator. ssh-keygen on your own machine is still the safest option.