
Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-16
# Display the host public key in the OpenSSH format.
[Sysname]public-key local export rsa openssh
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAxIkHkAo6EeN9EqW/6FIYEIlVKcpIa0
6IT4eSyq4OldeiZ9WorOiDqX3ROo4FmaTR/QCSK3C9whE1qz/4soVL1eHDdgzQCumKKsJCVaM5
OdZ2sdNbEnhLucs8ZrfTgEkDB1hmbgzuDpWPo8dC+hkFVV rsa-key
# Export the host public key of the RSA key pair in the format of OpenSSH and save the
public key file as pub_ssh_file2.
[Sysname] public-key local export rsa openssh pub_ssh_file2
# Export the host public key of the RSA key pair in the format of SSH1 and save the
public key file as pub_ssh_file3.
[Sysname] public-key local export rsa ssh1 pub_ssh_file3
1.1.13 public-key local export dsa
Syntax
public-key local export dsa
{
openssh
|
ssh2
}
[
filename
]
View
System view
Parameters
dsa
: Specifies the public key of the current switch’s DSA key pair.
openssh
: Uses the format of OpenSSH.
ssh2
: Uses the format of SSH2.
filename
: Name of the file for saving the 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 dsa
command to display the public key of the current
switch’s DSA key pair on the screen or export it to a specified file.
If you specify a filename, the public key will be exported to the file and the file will be
saved. If you do not specify any filename, the public key will be displayed on the screen.