R3303-HP HSR6800 Routers Security Configuration Guide

207
Displaying and recording the host public key
information
Task Command
Remarks
Display the local RSA public keys.
display public-key local rsa public [ | { begin
| exclude | include } regular-expression ]
Available in any view.
Use at least one
command.
Display the local DSA host public
key.
display public-key local dsa public [ | { begin
| exclude | include } regular-expression ]
The display public-key local rsa public command displays both the RSA server and host public keys.
Recording the RSA host public key is enough.
After you display the host public key, record the key information for manually configuration of the key on
the peer device.
Displaying the host public key in a specific format
and saving it to a file
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Display the local host public
key in a specific format.
Display the RSA host public key:
public-key local export public rsa
{ openssh | ssh1 | ssh2 }
Display the DSA host public key:
public-key local export public dsa
{ openssh | ssh2 }
Use at least one command.
After you display the host public key in a specific format, save the key to a file, and transfer the file to the
peer device.
Exporting the host public key in a specific format to
a file
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Export the local host public
key in a specific format to a
file.
Export the RSA host public key:
public-key local export rsa
{ openssh | ssh1 | ssh2 }
filename
Export the DSA host public key:
public-key local export dsa
{ openssh | ssh2 } filename
Use at least one command.