Public-Key Local Export Rsa - H3C MSR Series Command Reference Manual

Comware 7 security
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

[Sysname] public-key local export ecdsa openssh
ecdsa-sha2-nistp256
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBREw5tkARpbV+sYArt/xcW+UJEAevx7O
ckTtTLPBiLP5bWkSdKbvo+3oHRuIyZqmNTIcxuBjuBap+pHc919C58=
ecdsa-key
Related commands
public-key local create
public-key peer import sshkey

public-key local export rsa

Use public-key local export rsa to export a local RSA host public key.
Syntax
In non-FIPS mode:
public-key local export rsa [ name key-name ] { openssh | ssh1 | ssh2 } [ filename ]
In FIPS mode:
public-key local export rsa [ name key-name ] { openssh | ssh2 } [ filename ]
Views
System view
Predefined user roles
network-admin
Parameters
name key-name: Specifies a local RSA key pair by its name, a case-insensitive string of 1 to 64
characters. Valid characters are letters, digits, and hyphens (-). If you do not specify a key pair, this
command exports the host public key of the local RSA key pair with the default name.
openssh: Exports the host public key in OpenSSH format.
ssh1: Exports the host public key in SSH1.5 format.
ssh2: Exports the host public key in SSH2.0 format.
filename: Specifies the name of the file for saving the RSA host public key. The file name is a
case-insensitive string of 1 to 128 characters. The name cannot be all dots (.), hostkey, serverkey,
dsakey, or ecdsakey, and cannot start with a slash (/) or contain ./ and ../. For more information about
file names, see Fundamentals Configuration Guide. If you do not specify a file name, this command
does not export the key to a file but displays the key on the monitor screen.
Usage guidelines
You can use this command to export a local RSA host public key before distributing it to a peer
device.
To distribute a local RSA host public key to a peer device:
1.
Save the exported local host public key to a file by using one of the following methods:
Use the public-key local export rsa [ name key-name ] { openssh | ssh2 } command to
export the key, and then copy and paste it to a file.
Use the public-key local export rsa [ name key-name ] { openssh | ssh2 } filename
command to export key to a file. You cannot export the key to the folder pkey or its
subfolders.
2.
Transfer a copy of the file to the peer device, for example, by using FTP in binary mode or TFTP.
For more information about FTP and TFTP, see Fundamentals Configuration Guide.
447

Advertisement

Table of Contents
loading

Table of Contents