Operation Manual – SSH
H3C S3100 Series Ethernet Switches Chapter 1 SSH Configuration
1-9
Caution:
Currently, only the S3100-EI series support the ssh server compatible-ssh1x enable
command.
1.3.4 Generating/Destroying Key Pairs
This configuration task lets you generate or destroy a key pair. You must generate an
RSA and DSA key pair on the server for an SSH client to log in successfully. When
generating a key pair, you will be prompted to enter the key length in bits, which is
between 512 and 2048. The default length is 1024. In case a key pair already exists,
the system will ask whether to replace the existing key pair.
Table 1-5 Follow these steps to create or destroy key pairs:
To do... Use the command... Remarks
Enter system view
system-view
—
Generate an RSA key pair
public-key local create
rsa
Required
By default, no RSA key
pair is created.
Destroy the RSA key pair
public-key local destroy
rsa
Optional
Use the command to
destroy the generated
RSA key pair.
Generate a DSA key pair
public-key local create
dsa
Required
By default, no DSA key
pair is created.
Destroy the DSA key pair
public-key local destroy
dsa
Optional
Use the command to
destroy the generated
DSA key pair.