3com 8807 Reference Guide

Page of 1099
950
C
HAPTER
 56: SSH T
ERMINAL
 S
ERVICE
 C
ONFIGURATION
 C
OMMANDS
Description
Use the public-key-code end command to return from the public key edit view 
to the public key view and save the public key entered.
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 keys in the system.
Related command: rsa peer-public-keypublic-key-code begin.
Example
# Exit the public key edit view and save the configured public key.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] rsa peer-public-key sw8800003
 
[3Com-rsa-public-key] public-key-code begin
 
RSA key code view: return to last view with "public-key-code end".
 
[3Com-rsa-key-code] public-key-code end
 
[3Com-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. The naming conventions for 
the keys are switch name + host and switch name + server respectively, for 
example, 3Com_host, 3Com_server.
When configuring by this command, if the RSA key pair already exists, you will 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 .
Generating the RSA key pair of the server is the first step to perform after SSH 
login. It needs to be performed only once; you need not re-perform it after 
rebooting the switch.
CAUTION: When you log in through SSH user, the key generated by the server 
must be longer than 768 bits. The RSA key genetated by the server is 1,024 bits by 
default.
Related command: rsa local-key-pair destroy.