396
[Sysname] public-key local export rsa name rsa1 openssh
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgQDevEbyF93xHUJucJWqRc1r8fhzQ9lSVprCI6ATZeDYyR1J0
q2olqoagn5YDyUC8ZJvUhlyMOHeORpkAVxD3XncTp4XG66h3rTHHa7Xmm7f1GDYlF0n05t8mCLVaupbfCzP8b
a8UkrUmMO4fUvW6zavA5LYxtlAiQv0KQ== rsa-key
Related commands
public-key local create
public-key peer import
sshkey
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
HPE 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
Summary of Contents for FlexNetwork MSR Series
Page 1005: ...987 ...