R3204P16-HP Load Balancing Module Security Configuration Guide-6PW101
112
NOTE:
Key pairs created with the public-key local create rsa command are saved automatically and can survive
system reboots.
Displaying or exporting the local host public key
In SSH, to allow your local device to be authenticated by a peer device through digital signature, you
must display or export the host public key of the local asymmetric key pair, which will then be specified
on the peer device.
To display or export the host public key of a local asymmetric key pair, choose one of the following
methods:
• Displaying and recording the host public key information
• Displaying the host public key in a specif
ied format and saving it to a file
• Exporting the host public key in a specified format to a file
If y
our local device functions to authenticate the peer device, you must specify the peer public key on the
local device. For more information, see "Specifying the peer public key on the local device."
Displaying and recording the host public key information
After you display the host public key, record the key information for manually configuration of the key on
the peer device.
Follow the step to display the public key of the local asymmetric key pair:
To do… Use the command…
Remarks
Display the public keys of the local
RSA key pairs
display public-key local rsa public
Required
Available in any view.
NOTE:
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.
Displaying the host public key in a specified format and saving it to a file
After you display the host public key in a specify format, save the key to a file, and transfer this file to the
peer device.
Follow these steps to display the host public key of a local asymmetric key pair in a specified format:
To do… Use the command…
Remarks
Enter system view system-view —
Display the host public key of the local RSA
key pairs in a specified format
public-key local export rsa { openssh |
ssh1 | ssh2 }
Required
Exporting the host public key in a specified format to a file
After you export and save the host public key in a specify format to a file, transfer the file to the peer
device.
Follow these steps to export and save the host public key of a local asymmetric key pair to a file: