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
- Choose the key type and enter a comment.
- Press Generate.
- Download both files to ~/.ssh/ and run chmod 600 on the private key.
- 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.
Related tools
- Public Key ParserParse and display public key information.
- SSH Fingerprint ViewerShow the SHA256 and MD5 fingerprints and randomart of SSH public keys, as ssh-keygen -lv does.
- Private Key ParserParse and display private key metadata (never stores keys).
- Subnet CalculatorCalculate subnet masks, network ranges, and host counts.
- IPv6 ValidatorValidate IPv6 address format and structure.
- IPv4 ValidatorValidate IPv4 address format and structure.
- Linux Command CheatsheetIn Reference