OS Manuals

/usr/bin/ssh-keygen

OpenSSH key generator

From openssh-keygen 10.6_p2-r0 (os), captured 2026-11-10 by running ssh-keygen --help (exit 255) · terse output. permalink

No user exists for uid 1100
Options (42)
OptionDescriptionSource
-AGenerate host keys of all default key types (rsa, ecdsa, mldsa44-ed25519 and ed25519) if they do not already exist.man
-a roundsWhen saving a private key, this option specifies the number of KDF (key derivation function, currently bcrypt_pbkdf(3)) rounds used.man
-BShow the bubblebabble digest of specified private or public key file.man
-b bitsSpecifies the number of bits in the key to create.man
-C commentProvides a new comment.man
-cRequests changing the comment in the private and public key files.man
-D pkcs11Download the public keys provided by the PKCS#11 shared library pkcs11.man
-E fingerprint_hashSpecifies the hash algorithm used when displaying key fingerprints.man
-eThis option will read a private or public OpenSSH key file and print to stdout a public key in one of the formats specified by the -m option.man
-F hostnameSearch for the specified hostname (with optional port number) in a known_hosts file, listing any occurrences found.man
-f filenameSpecifies the filename of the key file.man
-gUse generic DNS format when printing fingerprint resource records using the -r command.man
-HHash a known_hosts file.man
-hWhen signing a key, create a host certificate instead of a user certificate.man
-I certificate_identitySpecify the key identity when signing a public key.man
-iThis option will read an unencrypted private (or public) key file in the format specified by the -m option and print an OpenSSH compatible private (or public) key to stdout.man
-KDownload resident keys from a FIDO authenticator.man
-kGenerate a KRL file.man
-LPrints the contents of one or more certificates.man
-lShow fingerprint of specified public key file.man
-M generateGenerate candidate Diffie-Hellman Group Exchange (DH-GEX) parameters for eventual use by the ‘diffie-hellman-group-exchange-’ key exchange methods.man
-m key_formatSpecify a key format for key generation, the -i (import), -e (export) conversion options, and the -p change passphrase operation.man
-N new_passphraseProvides the new passphrase.man
-n principalsSpecify one or more principals (user or host names) to be included in a certificate when signing a key.man
-O optionSpecify a key/value option.man
-P passphraseProvides the (old) passphrase.man
-pRequests changing the passphrase of a private key file instead of creating a new private key.man
-QTest whether keys have been revoked in a KRL.man
-qSilence ssh-keygen.man
-R hostnameRemoves all keys belonging to the specified hostname (with optional port number) from a known_hosts file.man
-r hostnamePrint the SSHFP fingerprint resource record named hostname for the specified public key file.man
-s ca_keyCertify (sign) a public key using the specified CA key.man
-t ecdsaSpecifies the type of key to create.man
-UWhen used in combination with -s or -Y sign, this option indicates that a CA key resides in an ssh-agent(1).man
-uUpdate a KRL.man
-V validity_intervalSpecify a validity interval when signing a certificate.man
-vVerbose mode.man
-w providerSpecifies a path to a library that will be used when creating FIDO authenticator-hosted keys, overriding the default of using the internal USB HID support.man
-Y find-principalsFind the principal(s) associated with the public key of a signature, provided using the -s flag in an authorized signers file provided using the -f flag.man
-yThis option will read a private OpenSSH format file and print an OpenSSH public key to stdout.man
-Z cipherSpecifies the cipher to use for encryption when writing an OpenSSH-format private key file.man
-z serial_numberSpecifies a serial number to be embedded in the certificate to distinguish this certificate from others from the same CA.man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.