3com 8807 Guia De Referência

Página de 1099
SSH Server Configuration Commands
951
Example
# Generate the local RSA key pair.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] rsa local-key-pair create
 
The name for the keys will be: rtvrp_Host
 
% You already have RSA keys defined for rtvrp_Host
 
% Do you really want to replace them? [yes/no]:y
 
Choose the size of the key modulus in the range of 512 to 2048 for your Keys.
 
Choosing a key modulus greater than 512 may take a few minutes.
 
How many bits in the modulus [512]:512
 
Generating keys...
 
.....++++++++++++
 
........................++++++++++++
 
..........++++++++
 
............................++++++++ 
rsa local-key-pair 
destroy
Syntax
rsa local-key-pair destroy
View
System view
Parameter
None
Description
Use the rsa local-key-pair destroy command to destroy all the RSA key pairs of 
the server, including the host keys and server keys.
Related command: rsa local-key-pair create.
Example
# Destroy all the RSA keys of the server.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] rsa local-key-pair destroy
 
% Keys to be removed are named rtvrp_Host .
 
% Do you really want to remove these keys? [yes/no]:y 
rsa peer-public-key
Syntax
rsa peer-public-key key-name
View
System view
Parameter
key-name: Name of the public key of the client. It is a consecutive string whose 
length ranges from 1 to 64 characters.
Description
Use the rsa peer-public-key command to enter the public key view.