ssh-keygen -t ed25519 -C 'you@example.com'Create a modern SSH key pair.
SSH key generation, authorized_keys management, ssh-keyscan, host keys, ssh-agent, ssh-add, and certificate basics.
Create, inspect, and convert SSH keys.
ssh-keygen -t ed25519 -C 'you@example.com'Create a modern SSH key pair.
ssh-keygen -t rsa -b 4096 -C 'you@example.com'Create an RSA key pair for compatibility when needed.
ssh-keygen -t ed25519 -f ~/.ssh/id_work_ed25519 -C 'work key'Write a key pair to a chosen file.
Skip passphrase prompts, usually only for automation accounts.
ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ci_ed25519Skip passphrase prompts, usually only for automation accounts.
ssh-keygen -p -f ~/.ssh/id_ed25519Update the passphrase on an existing private key.
ssh-keygen -lf ~/.ssh/id_ed25519.pubPrint the fingerprint of a public key file.
ssh-keygen -lvf ~/.ssh/id_ed25519.pubDisplay a visual fingerprint representation.
Regenerate the public half from a private key.
ssh-keygen -y -f ~/.ssh/id_ed25519 > ~/.ssh/id_ed25519.pubRegenerate the public half from a private key.
Manage agent sockets and loaded identities.
Start an agent and export its environment variables.
eval "$(ssh-agent -s)"Start an agent and export its environment variables.
ssh-add ~/.ssh/id_ed25519Load the default identity into ssh-agent.
Show fingerprints of identities currently loaded in the agent.
ssh-add -lShow fingerprints of identities currently loaded in the agent.
ssh-add -LPrint public keys currently loaded in the agent.
ssh-add -d ~/.ssh/id_ed25519Delete a specific key from the agent.
ssh-add -DClear all identities from the agent.
Load a key that prompts for confirmation on each use.
ssh-add -c ~/.ssh/id_ed25519Load a key that prompts for confirmation on each use.
Load a key that expires automatically from the agent.
ssh-add -t 1h ~/.ssh/id_ed25519Load a key that expires automatically from the agent.