EasyManua.ls Logo

H3C MSR Series

H3C MSR Series
1187 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
449
public-key peer
Use public-key peer to assign a name to a peer host public key and enter public key view, or enter
the view of an existing peer host public key.
Use undo public-key peer to delete a peer host public key.
Syntax
public-key peer keyname
undo public-key peer keyname
Default
No peer host public keys exist.
Views
System view
Predefined user roles
network-admin
Parameters
keyname: Specifies a key name, a case-sensitive string of 1 to 64 characters.
Usage guidelines
After you execute this command to enter the public key view, type the public key. Spaces and
carriage returns are allowed, but are not saved.
To configure a peer host public key on the local device, first obtain the peer public key in hexadecimal
notation, and then perform the following tasks on the local device:
1. Execute the public-key peer command to enter public key view.
2. Type the public key.
3. Execute the peer-public-key end command to save the public key and return to system view.
The public key you type in the public key view must be in a correct format. If the peer device is an
H3C device, use the display public-key local public command to display and record its public key.
Examples
# Assign name key1 to the peer host public key and enter public key view.
<Sysname> system-view
[Sysname] public-key peer key1
Enter public key view. Return to system view with "peer-public-key end" command.
[Sysname-pkey-public-key-key1]
Related commands
display public-key local public
display public-key peer
peer-public-key end
public-key peer import sshkey
Use public-key peer import sshkey to import a peer host public key from a public key file.
Use undo public-key peer to remove a peer host public key.

Table of Contents

Other manuals for H3C MSR Series

Related product manuals