Command Reference Guide
3Com Router 3000 Ethernet Family
Command Reference Guide
Error! Reference source not found.Error! Re
f
erence source not found.
3Com Corporation
9-18
discards the key. The configuration fails. If the key is valid, it is saved to the linked list of
client public keys.
Related command: rsa peer-public-key, public-key-code begin.
Example
# Exit public key code view and save the configuration.
[3com-rsa-key-code] public-key-code end
[3com-rsa-public-key]
9.2.10 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 local RSA host key pair
and server key pair.
Executing this command generates two files, hostkey and serverkey, each containing a
pair of local public key and private key. While the key pair in the serverkey file is
updated automatically at regular intervals, the key pair in the hostkey file will not
change after their creation.
If the key pairs exist when you enter this command, the system warns that the existing
keys are to be replaced. The names of the generated key pairs are respectively router
name+ server and router name + host, for example, 3com_host and 3com_server. This
command is not stored in the configuration file.
After you enter this command, the system asks you to input the number of digits for the
host key pair. The server key pair and the host key pair have at least 128 digits of
difference. The minimum length of server key pair and host key pair is 512 digits and
the maximum length is 2048 digits. If there have been key pairs, you need to confirm
whether to change them.
To log onto the router through SSH, you must first generate local RSA key pairs using
the rsa local-key-pair create command. You only need to execute this command once
and do not need to execute it again at reboot.
Related command: rsa local-key-pair destroy.










