
1-20
[Sysname-rsa-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[Sysname-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[Sysname-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[Sysname-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[Sysname-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[Sysname-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[Sysname-rsa-key-code] public-key-code end
[Sysname-rsa-public-key]
rsa local-key-pair create
Syntax
rsa local-key-pair create
View
System view
Parameters
None
Description
Use the
rsa local-key-pair create
command to generate an RSA key pair for the current switch.
Note that:
z
After entering this command, you will be prompted to provide the length of the key pair. The length
of a server/host key must be in the range 512 to 2048 bits and defaults to 1024. If the key pair
already exists, the system will ask you whether you want to overwrite it.
z
The configuration of this command can survive a reboot. You only need to configure it once.
z
After the RSA key pair is generated, the
display rsa local-key-pair public
command displays two
public keys (the host public key and server public key) when the switch is working in
SSH1-compatible mode, but only one public key (the host public key) when the switch is working in
SSH2 mode.
Related commands:
rsa local-key-pair destroy
,
display rsa local-key-pair public
.
Examples
# Generate a local RSA key pair.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rsa local-key-pair create
The local-key-pair will be created.
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 1024]:
Generating keys...
........................++++++
.......++++++
.................................++++++++