ssh-keygen
Generate ssh-keygen commands for common SSH key tasks
Build ssh-keygen commands for creating keys, converting PEM, changing passphrases, checking fingerprints, and removing stale known_hosts entries.
Choose a task, adjust the options, and copy the exact command you need.
Task
Create a new SSH key pair with your preferred algorithm and file path.
Command options
Generated command
Copy the command and run it locally in Terminal.
ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519After generating the command, manage the connection workflow in DartShell
Keep your SSH hosts, file transfer, and database access together after the key setup step is done.
What this ssh-keygen tool helps with
Create the right command faster
Instead of searching for flags every time, choose a task and copy a command that already includes the common options.
Handle PEM and legacy compatibility
Some platforms still expect PEM output, especially when they document RSA-based SSH onboarding flows.
Fix host key mismatch warnings
Use the known_hosts cleanup command when SSH warns that a remote host identification has changed.
Common ssh-keygen examples
Create a modern Ed25519 key
ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519Create an RSA 4096 key in PEM format
ssh-keygen -t rsa -b 4096 -m PEM -C "[email protected]" -f ~/.ssh/id_rsaRemove an outdated known_hosts entry
ssh-keygen -R github.com