[email protected] tmp]# man Ssh-keygen
NAME
Ssh-keygen-authentication key generation, management and conversion
Synopsis
Ssh-keygen [-Q] [-B bits]-t type [-n new_passphrase] [-c comment] [-f Output_keyfile]
Ssh-keygen-p [ -P old_passphrase] [-N new_passphrase] [-F keyfile]
Ssh-keygen-i [-F Input_keyfile]
Ssh-keygen-e [-F Input_keyfi Le]
Ssh-keygen-y [-F Input_keyfile]
Ssh-keygen-c [-P passphrase] [-c comment] [-f keyfile]
Ssh-keygen-l [-F Input_keyfile]
Ssh-keygen-b [-F Input_keyfile]
ssh-keygen-d pkcs11
ssh-keygen-f hostname [-F Known_hosts_f ILE] [-l]
Ssh-keygen-h [-F Known_hosts_file]
ssh-keygen-r hostname [-f known_hosts_file]
Ssh-keygen-r hostn Ame [-F Input_keyfile] [-g]
Ssh-keygen-g output_file [-v] [-B bits] [-M memory] [-s start_point]
ssh-keygen-t ou Tput_file-f Input_file [-v] [-a num_trials] [-W generator]
Ssh-keygen [-n] [-D smartcard]
Ssh-keygen-s ca_key-i certificate_identity [-h] [-Z principals] [-o-option] [-v validity_interval] [-z serial_number] File ...
Ssh-keygen-l [-F Input_keyfile]
-T Type
Specifies the type of key to create. The possible values are ' RSA1 ' for protocol version 1 and ' DSA ', ' ECDSA ' or ' RSA ' for protocol version 2.
-F filename
Specifies the filename of the key file.
-N new_passphrase
provides the new passphrase.
[[email protected] tmp]# ssh-keygen-t rsa-n '-F $ (date ' +%s '). RSA
Generating public/private RSA key pair.
Your identification have been saved in 1510671746.rsa.
Your public key had been saved in 1510671746.rsa.pub.
The key fingerprint is:
19:f8:04:41:7c:18:82:ed:60:52:ff:72:ac:7d:8f:07 [email protected]
The key ' s Randomart image is:
+--[RSA 2048]----+
| .. o.o=+ |
|. +...oo. |
| o o ... o |
|. o o O |
| . + S |
| = E |
| . . .. |
| . O. |
| ... |
+-----------------+
[email protected] tmp]# LL
Total 48K
-RW-------1 root root 1.7K Nov 23:02 1510671746.rsa
-rw-r--r--1 root root 402 Nov 23:02 1510671746.rsa.pub
Linux no interactive generation SSH RSA secret certificate