ssh-keygen-g3 — authentication key pair generator
ssh-keygen-g3 (ssh-keygen-g3.exe on Windows) is a tool that generates and manages authentication keys for Secure Shell. Each user wishing to use a Secure Shell client with public-key authentication can run this tool to create authentication keys. Additionally, the system administrator can use this to generate host keys for the Secure Shell server.
By default, if no path for the key files is specified, the key pair is generated under the user's home directory (
$HOME/.ssh2 on Unix, "
%USERPROFILE%\Application Data\SSH\UserKeys" on Windows). If no filename is specified, the key pair is likewise stored under the user's home directory with such filenames as
The following options are available:
Converts a key file from the SSH1 format to the SSH2 format.
Specifies the length of the generated key in bits (default:
Specifies the number base for displaying key information (default:
Specifies a comment string for the generated key.
Derives the public key from the private key
Edits the specified key. Makes ssh-keygen-g3 interactive. You can change the key's passphrase or comment.
Dumps the fingerprint of the given public key. By default, the fingerprint is given in the SSH Babble format, which makes the fingerprint look like a string of "real" words (making it easier to pronounce). The format can be changed with the
Stores the generated key pair in the default host key directory (
/etc/ssh2on Unix, "
C:\Program Files\SSH Communications Security\SSH Tectia\SSH Tectia Server" on Windows). Specify the
-Poption to store the private key with an empty passphrase.
Loads and displays information on the key
Specifies the passphrase for the generated key.
Specifies that the generated key will be saved with an empty passphrase.
Hides the progress indicator during key generation.
Adds entropy from
fileto the random pool. If
filecontains 'relatively random' data (i.e. data unpredictable by a potential attacker), the randomness of the pool is increased. Good randomness is essential for the security of the generated keys.
Selects the type of the key. Valid options are
Converts a private key from the X.509 format to the SSH2 format.
Converts a PKCS #12 file to an SSH2-format certificate and private key.
Extracts certificates from a PKCS #7 file.
Specifies the output format of the fingerprint. If this option is given, the
-Foption and the key filename must precede it. The default format is
See the section called “Examples” for examples of using this option.
Generates the key using the FIPS mode for the cryptographic library. In the FIPS mode, only DSA keys of 1024 bits and RSA keys of at least 1024 bits can be generated, and the keys must have non-empty passphrases. By default (if this option is not given), the key is generated using the standard mode for the cryptographic library.
Specifies the location of the FIPS cryptographic DLL.
Attempts to import a public key from
infileand store it to
outfilein SSH2 native format.
Attempts to import an unencrypted private key from
infileand store it to
outfilein SSH2 native private key format.
Imports an SSH1-style authorized_keys file
infileand generates an SSH2-style authorization file
outfile, and stores the keys from
infileto generated files into the same directory with
Overwrite files with the same filenames. The default is to overwrite.
On Windows, sets the correct owner and DACL (discretionary access control list) for the host key
file. This option is used internally when a host key is generated during SSH Tectia Server installation.
Displays version string and exits.
Displays a short summary of command-line options and exits.
Create a 1024-bit RSA key pair using the cryptographic library in the FIPS mode and store the key pair in the default user key directory with filenames
$ ssh-keygen-g3 --fips-mode -t rsa -b 1024 newkey
Convert an SSH1 key
oldkey to SSH2 format:
$ ssh-keygen-g3 -1 oldkey
Display the fingerprint of a server host public key in SSH babble (default) format:
$ ssh-keygen-g3 -F hostkey.pub Fingerprint for key: xeneh-fyvam-sotaf-gutuv-rahih-kipod-poten-byfam-hufeh-tydym-syxex
Display the fingerprint of a server host public key in hex format:
$ ssh-keygen-g3 -F hostkey.pub --fingerprint-type=hex Fingerprint for key: 25533b8c7734f6eb1556ea2ab4900d854d5d088c