234
NOTE:
• The device supports up to 20 peer public keys.
• For information about displaying or exporting the host public key, see "Displaying or exporting the
local h
o
st public key."
Follow these steps to import the host public key from a public key file to the local device:
To do… Use the command…
Remarks
Enter system view system-view —
Import the host public key from the
public key file
public-key peer keyname import
sshkey filename
Required
Follow these steps to manually configure the peer public key on the local device:
To do… Use the command…
Remarks
Enter system view system-view —
Specify a name for the public key
and enter public key view
public-key peer keyname Required
Enter public key code view public-key-code begin —
Configure the peer public key Type or copy the key
Required
Spaces and carriage returns are
allowed between characters.
Return to public key view public-key-code end
Required
When you exit public key code
view, the system automatically
saves the public key.
Return to system view peer-public-key end —
Displaying and maintaining public keys
To do… Use the command… Remarks
Display the local public keys
display public-key local { dsa | rsa } public
[ | { begin | exclude | include }
regular-expression ]
Available in any view
Display the specified or all peer
public keys on the local device
display public-key peer [ brief | name
publickey-name ] [ | { begin | exclude |
include } regular-expression ]