TrumanWong

ssh-keygen

Generate, manage and convert authentication keys for ssh

Supplementary instructions

ssh-keygen command is used to generate, manage and convert authentication keys for "ssh". It supports both RSA and DSA authentication keys.

grammar

ssh-keygen(options)

Options

-b: Specify the key length;
-e: Read the private key or public key file of openssh;
-C: add comments;
-f: Specify the file name used to save the key;
-i: Read the unencrypted ssh-v2 compatible private key/public key file, and then display the openssh compatible private key/public key on the standard output device;
-l: Display the fingerprint data of the public key file;
-N: Provide a new password;
-P: Provide (old) secret word;
-q: Silent mode;
-t: Specifies the key type to create.
-y: Read the private key and output the public key.