Importing a peer host public key from a public key file

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.

To import a peer host public key from a public key file:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. 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.