How to Create SSH Keys and Organise Your SSH Config
Create an Ed25519 SSH key with a passphrase, check fingerprints, set up ~/.ssh/config with aliases and ProxyJump, and restrict keys in authorized_keys.

How to Create SSH Keys and Organise Your SSH Config
SSH keys replace passwords for logging in to servers, pushing code and running deployments. They are safer and faster, but only if they are created well, protected with a passphrase and organised so you always know which key opens which door. This guide covers all three, using the free SSH key generator and config builder, which creates the same files as ssh-keygen directly in your browser.
Choose the right key type
Ed25519 is the best default today. Its keys are short, signatures are fast and the algorithm avoids several pitfalls of older schemes. GitHub, GitLab, Bitbucket and every current OpenSSH server accept it. RSA is still needed for some old appliances and legacy systems; if you must use it, choose 3072 or 4096 bits, because 2048 is the minimum and gives the least margin for the future. ECDSA with the P-256 curve sits in between and is mostly useful where policy requires NIST curves.
Always consider a passphrase
The private key file is the credential. Anyone who copies it from a backup, a stolen laptop or a shared folder can log in as you. A passphrase encrypts the file: OpenSSH derives a key from your passphrase with bcrypt_pbkdf and encrypts the private part with AES-256 in counter mode. The number of KDF rounds controls how slow each guess is. With ssh-agent or the macOS keychain you type the passphrase once per session, so the daily cost is small.
Fingerprints and randomart
A fingerprint is a short hash of the public key, shown as SHA256 followed by Base64 text. Servers and Git hosts show it too, so comparing fingerprints is how you confirm that the key you uploaded is the key you hold. The randomart picture is the same fingerprint drawn as a little grid; it is easier to recognise at a glance than a string. The generator shows both, in the same form ssh-keygen prints.
Install the files correctly
Save the private key in ~/.ssh with a descriptive name such as id_ed25519_work, and set its permissions to 600, because ssh refuses keys that other users can read. The public key goes into your Git host's settings, or into ~/.ssh/authorized_keys on a server, for example with ssh-copy-id. Add the key to the agent with ssh-add so you do not have to retype the passphrase.
Organise hosts in ~/.ssh/config
Long commands such as ssh -i ~/.ssh/id_ed25519_work -p 2222 [email protected] are error-prone. A config file gives each server an alias. The essential options are HostName, User, Port and IdentityFile. IdentitiesOnly yes makes ssh offer only the named key, which avoids too many authentication failures when your agent holds several keys. ServerAliveInterval keeps idle sessions alive through firewalls. ProxyJump connects through a bastion host in one step, so ssh db can reach a private database server via your jump box. LocalForward opens a tunnel, for example from local port 5433 to the database port on the remote side.
Order matters. ssh uses the first value it finds for each option, so specific hosts go first and a Host * block with general defaults goes last. The builder writes the file in that order and can import your existing config so you can clean it up.
Avoid ForwardAgent where you can
Agent forwarding lets a remote machine use your local keys while you are connected. Anyone with root on that machine can do the same. ProxyJump achieves the common goal of hopping through a bastion without exposing your agent, so prefer it.
Restrict keys on the server
authorized_keys accepts options in front of a key. from limits the source addresses, command forces one program to run whatever the client asks, restrict turns off port forwarding, agent forwarding, X11 and terminals in one word, and expiry-time sets an end date. A backup key that may only run a backup script from one address is far less dangerous if it leaks.
Limits
Keys generated in a browser are only as safe as the computer you use, so avoid shared or untrusted machines. Ed25519 in WebCrypto needs a recent browser. Hardware security keys, SSH certificates and the old PEM private-key format are outside the scope of this tool, and organisational policies about key types or rotation always take precedence over general advice.



