Importing a peer host public key from a public key file
About importing a peer host public key
Before you perform this task, make sure you have exported the host public key to a file on the peer device and obtained the file from the peer device. For information about exporting a host public key, see "Exporting a host public key."
After you import the key, the system automatically converts the imported public key to a string in the Public Key Cryptography Standards (PKCS) format.
Procedure
Enter system view.
system-view
Import a peer host public key from a public key file.
public-key peer keyname import sshkey filename
By default, no peer host public keys exist.