SSH key generator

An Ed25519 or RSA key pair in OpenSSH format, generated by your browser: the public key for the server, the private key for the user.

Key type

Public key (for the server, authorized_keys)

Private key (for the user, ~/.ssh/)

Created without a passphrase: add one on receipt with ssh-keygen -p -f ~/.ssh/id_ed25519.

Send with onlyU — Your recipient gets a link they can open only once, then the link is gone. onlyU opens in a new tab with the secret already filled in: all you have to do is create the link. Free, no sign-up. How does it work?

Computed in your browser. Nothing is sent unless you choose onlyU.

An SSH key pair, generated by your browser

An SSH key replaces the password you use to log in to a server with a key pair: the public key, placed on the server, and the private key, kept by the user. The generator creates this pair with your browser's Web Crypto API, then writes it in OpenSSH format, the one expected by ssh, Git and most clients:

  • the public key on a single line, ssh-ed25519 AAAA… comment (or ssh-rsa AAAA…), ready for authorized_keys;
  • the private key between the lines -----BEGIN OPENSSH PRIVATE KEY----- and -----END OPENSSH PRIVATE KEY-----;
  • the SHA256:… fingerprint, the same one ssh-keygen -lf displays, to check that an installed key is the right one.

The keys never leave the page: it is not allowed to make a single network request.

Ed25519 or RSA 4096

Ed25519, the default, gives short keys that are fast to verify and robust. OpenSSH has supported it since version 6.5, released in 2014. RSA 4096 remains useful for an older server or device that does not know Ed25519; generating it can take a few seconds.

Ed25519 in Web Crypto requires a recent browser. If yours does not offer it, the page tells you: update it, or choose RSA 4096.

The comment helps you recognize the key in authorized_keys; it usually holds the user and the machine, for example alice@laptop.

Install the key pair

  1. Add the public key, on a single line, to the ~/.ssh/authorized_keys file of the account on the server.
  2. Save the private key on the user's computer, for example as ~/.ssh/id_ed25519, keeping the BEGIN and END lines and ending the file with a line break: otherwise some versions of OpenSSH reject the key (“invalid format”).
  3. On Linux and macOS, restrict its permissions with chmod 600 ~/.ssh/id_ed25519: OpenSSH ignores a private key that other accounts can read. On Windows, the built-in OpenSSH client also checks the file's permissions.
  4. Protect it with a passphrase. The private key is created without a passphrase; on receipt, a single command encrypts it on disk:
    ssh-keygen -p -f ~/.ssh/id_ed25519

Hand a key over to a team member

Best practice is for everyone to generate their own key on their own computer, with ssh-keygen or this tool, and to share only the public key. When an administrator sets up access for a new team member themselves, however, they have to get the private key to that person, and that key gives server access to whoever holds it.

“Send with onlyU” sends the private key and the public key together. onlyU encrypts them in your browser and creates a link your team member can open only once, valid for 24 hours, after which the link disappears: the key does not linger in a mailbox or a chat channel. For the full step-by-step, read our guide on how to create an SSH key and add it to a server.

Frequently asked questions

Ed25519 or RSA: which key should I choose?

Ed25519: shorter, faster and as secure as a 3072-bit RSA key. Choose RSA 4096 only for an older server that does not accept Ed25519.

Is the key really generated in my browser?

Yes, by your browser's Web Crypto API. No key travels over the network; in fact, the page is not even allowed to send requests.

What do I do with the public key?

Add it, on a single line, to the ~/.ssh/authorized_keys file of the account on the server. The private key goes in ~/.ssh/ on the user's computer, with restricted permissions (chmod 600).

Is the private key protected by a passphrase?

No, it is created without a passphrase. Add one as soon as you receive it with ssh-keygen -p -f ~/.ssh/id_ed25519: the key will then be encrypted on disk.

How do I hand a private key to a team member?

Ideally, everyone generates their own key. When an administrator sets up access for a team member, “Send with onlyU” hands them the private key once, then the link disappears.