Linux no interactive generation SSH RSA secret certificate

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.