ssh-keygen Options

SSH1 SSH2 OpenSSH Option Meaning
Check -1 filename Convert SSH1 key file to SSH2
Check Check Check -b bits # of bits in generated key
N -B positive_integer [180] Specify numeric base for displaying key
Check Check -c Change comment (with -C )
Check -c comment Change comment
Check Check -C comment Specify new comment (with -c)
Check -d Generate DSA key
N -D filename Derive public key from private key file
Check -e filename Edit key file interactively
Check [181] Check -f filename Output filename
Check -F filename Print fingerprint of public key
Check -h Print help and exit
Check -l Print fingerprint of public key
Check Check -N passphrase Specify new passphrase
Check -o filename Output filename
Check Check -p Change passphrase (with -P and -N )
F -p passphrase Change passphrase
Check Check -P passphrase Specify old passphrase (with -p)
Check -P Use empty passphrase
Check Check -q Quiet: suppress progress indicator
Check -r Stir in data from random pool
Check -R Detect RSA (exit code 0/1)
Check -t algorithm Select key-generation algorithm
Check -u Change encryption algorithm
F -v Print version string and exit
N -V Print version string and exit
Check -x Convert OpenSSH public key to SSH2
Check -X Convert SSH2 public key to OpenSSH
Check -y Derive public key from private key file
Check -? [182] Print help and exit
[180]Undocumented
[181]The output filename is given as the final argument to ssh-keygen2
[182]You may need to escape the question mark in your shell, e.g., -\?