SSH Key Generator
Generate SSH key pairs for use with servers, GitHub, GitLab, and other services. Supports Ed25519 (modern, recommended) and RSA algorithms.
Algorithm
Appended to key filename for identification
Select an algorithm and click "Generate SSH Keys" to create your key pair.
SSH Key Generator — Generate Ed25519 & RSA SSH Keys
SSH keys provide a more secure way to log into a server than using a password alone. When you generate an SSH key pair, you get a public key (shared with servers) and a private key (kept secret on your machine).
Ed25519 vs RSA
- Ed25519 (recommended): Uses elliptic curve cryptography. Smaller keys, faster operations, and considered more secure than RSA. Supported by all modern SSH servers.
- RSA-2048: The traditional standard. Widely compatible, including with older systems.
- RSA-4096: Double the RSA key size for extra security at the cost of slightly slower operations.
Key Format Note
Keys are generated in SPKI (public) and PKCS8 (private) PEM format. To use the public key in ~/.ssh/authorized_keys on a remote server, convert it to OpenSSH format with: ssh-keygen -i -m PKCS8 -f public.pem
Adding to GitHub / GitLab
After generating your keys, convert the public key to OpenSSH format and add it to your account under Settings → SSH Keys. This allows you to clone and push to repositories over SSH without a password.