Entering a peer host public key
Before you perform this task, make sure you have displayed the key on the peer device and recorded the key. For information about displaying a host public key, see "Displaying a host public key."
Use the display public-key local public command to display the public key on the peer device. The format of the public key displayed in any other way might be incorrect. If the key is not in the correct format, the system discards the key and displays an error message. If the key is valid, the system saves the key.
Always import rather than enter the peer host public key if you are not sure that the device supports the format of the recorded peer host public key.
To enter a peer host public key:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Specify a name for the public key and enter public key view. | public-key peer keyname | N/A |
3. Enter public key code view. | public-key-code begin | N/A |
4. Configure the peer public key. | Type or copy the key | Spaces and carriage returns are allowed between characters. |
5. Return to public key view. | public-key-code end | When you exit public key code view, the system automatically saves the public key. |
6. Return to system view. | peer-public-key end | N/A |