H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – SSH Terminal Service
H3C S7500 Series Ethernet Switches
Chapter 1 SSH Terminal Service
Configuration Commands
1-9
[H3C-rsa-public-key]public-key-code begin
[H3C-rsa-key-code] public-key-code end
[H3C-rsa-public-key]
1.1.9 rsa local-key-pair create
Syntax
rsa local-key-pair create
View
System view
Parameters
None
Description
Use the rsa local-key-pair create command to generate RSA key pairs, including the
host key pair and the server key pair.
Note that:
z After you execute this command, the system will prompt you to specify the key
length in bits. The length range is from 512 bits to 2048 bits, and defaults to 1024
bits. If there already exist key pairs, the system will prompt you whether to replace
the old ones.
z Configuration of the rsa local-key-pair create can survive a reboot. You only
need to configure it once.
Note:
Server key pair (H3C_Server) is not used in SSH2.0; therefore, when the rsa
local-key-pair create command is executed, the system only prompts you the host
RSA key pair (H3C_Host) is generated, and does not inform you the information about
the server key pair even if the server key pair is generated in the background for the
purpose of SSH1.x compatibility. You can use the display rsa local-key-pair public
command to display the generated key pairs.
Related commands: rsa local-key-pair destroy, display rsa local-key-pair public,
ssh server compatible-ssh1x enable.
Examples
# Generate a local RSA key pair.