Command Manual – System Management 
Quidway S8500 Series Routing Switches 
Chapter 8  SSH Terminal Service Configuration 
Commands
 
Huawei Technologies Proprietary 
8-10 
  Caution: 
When you log in through SSH user, the key generated by the server must be longer 
than or equal to 768 bits. The RSA key genetated by the server is 512 bits by default. 
 
Related command: rsa local-key-pair destroy. 
Example 
# Generate the local RSA key pair. 
<Quidway> system-view 
System View: return to User View with Ctrl+Z. 
[Quidway] 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... 
.....++++++++++++ 
........................++++++++++++ 
..........++++++++ 
............................++++++++ 
8.1.11  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.