Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-15
Parameters
rsa
: Specifies the host public key of the current switch’s RSA key pair.
openssh
: Specifies the format of the exported file as OpenSSH.
ssh1
: Specifies the format of the exported file as SSH1.
ssh2
: Specifies the format of the exported file as SSH2.
filename
: Name of the file for saving the host public key, a string of 1 to 142 characters.
For file naming rules, refer to
File System Management Command
.
Description
Use the
public-key local export rsa
command to display the host public key of the
current switch’s RSA key pair on the screen or export it to a specified file.
If you specify a filename, the host public key will be exported to the file and the file will
be saved. If you do not specify any filename, the host public key will be displayed on the
screen.
Caution:
z
SSH1, SSH2, and OpenSSH are three public key file formats. You can choose one
as required.
z
The host public key displayed on the screen is in a format that is not transformed
and cannot be used as the public key data for public key configuration.
Related commands:
public-key local create
,
rsa local-key-pair create
.
Examples
# Generate an RSA key pair.
<Sysname> system-view
[Sysname] public-key local create rsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 1024]:
Generating keys...
...............................................++++++
......++++++
.................++++++++
.....++++++++
.......