3Com 4500 50-PORT, 4500 PWR 50-PORT, 4500 PWR 26-PORT manual Rsa local-key-pair create Syntax

Models: 4500 26-PORT 4500 PWR 26-PORT 4500 PWR 50-PORT 4500 50-PORT

1 466
Download 466 pages 21.69 Kb
Page 430
Image 430

424CHAPTER 12: USING SYSTEM MANAGEMENT COMMANDS

After this command is performed to end the public key edit procedure, the system will check the validity of the key before saving the input public key. If the public key string contains any illegal character, the system will prompt the failure of the configuration and the configured key will be discarded; otherwise, the key is valid and will be saved to the user public key list.

Related command: rsa peer-public-key,public-key-code begin.

Example

To exit the public key edit view and save the configuration, enter the following:

[SW4500-rsa-key-code]public-key-code end

[SW4500-rsa-public-key]

rsa local-key-pair create Syntax

rsa local-key-pair create

View

System view

Parameter

None

Description

Use the rsa local-key-pair create command to generate the RSA key pair (including the host key and server key) of the server.

When configuring by this command, if the RSA key pair already exists, you receive get a warning asking if you want to replace the existing one. Note that the host key and the server key must have a difference of 128 bits at least, and that the minimum and maximum lengths for the host key and the server key are 512 bits and 2048 bits respectively.

When the client version is SSH 2.0, the RSA key of the SSH server must be no less than 1024 bits in length, otherwise the authentication will fail

Generating the RSA key pair of the server is the first step to perform after SSH login. You will not need to generate the RSA key pair after rebooting the Switch.

Related command: rsa local-key-pair destroy.

Example

To generate the local RSA key pair, enter the following:

[SW4500]rsa local-key-pair create

[SW4500]rsa local-key-pair create The key name will be: SW4500_Host

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 = 512]:1024

Generating keys...

...................................................++++++

.................................++++++

Page 430
Image 430
3Com 4500 50-PORT, 4500 26-PORT Rsa local-key-pair create Syntax, To generate the local RSA key pair, enter the following