HP 5920 Command Reference Manual page 179

Table of Contents

Advertisement

Views
System view
Predefined user roles
network-admin
Parameters
name key-name: Specifies the name of a local RSA key pair. The key-name argument is a case-insensitive
string of 1 to 64 characters, including letters, digits, and hyphens (-). If no name is provided, the
command displays or exports the host public key of the local DSA key pair with the default name.
openssh: Uses the format of OpenSSH.
ssh1: Uses the format of SSH1.5.
ssh2: Uses the format of SSH2.0.
filename: Specifies the name of the file for saving the local host public key. The file name is a string of
case-insensitive characters excluding ./ and ../. The name cannot be dots (.), hostkey, serverkey, dsakey,
or ecdsakey, and cannot start with a slash (/). For more information about file name, see Fundamentals
Configuration Guide.
Usage guidelines
Whether the command exports or displays the host public key depends on the presence of the filename
argument.
You can use the command to display or export the local RSA host public keys before distributing it to a
peer device.
Save the local host public key to a file with one of the following methods:
1.
Use the public-key local export rsa [ name key-name ] { openssh | ssh2 } command to display
the host public key in the specified format, copy and paste it to a file.
Use the public-key local export rsa [ name key-name ] { openssh | ssh2 } filename command
to export the host public key to the file. You cannot export the host public key to the folder pkey
and its subfolders.
Transfer a copy of the file to the peer device, for example, by using FTP or TFTP in binary mode.
2.
On the peer device, use the public-key peer import sshkey command to import the host public key
3.
from the file.
SSH1.5, SSH2.0 and OpenSSH are different public key formats. Choose the proper format that is
supported on the device where you import the host public key. In FIPS mode, only SSH 2.0 and OpenSSH
are available.
Examples
# Export the host public key of the local RSA key pair with the default name in OpenSSH format to the
file key.pub.
<Sysname> system-view
[Sysname] public-key local export rsa openssh key.pub
167

Advertisement

Table of Contents
loading

This manual is also suitable for:

59005920 series5900 series

Table of Contents