381
AAAAB3NzaC1yc2EAAAADAQABAAAAgQDevEbyF93xHUJucJWqRc1r8fhzQ9lSVprCI6ATZeDYyR1J0
q2olqoagn5YDyUC8ZJvUhlyMOHeORpkAVxD3XncTp4XG66h3rTHHa7Xmm7f1GDYlF0n05t8mCLVaupbfCzP8b
a8UkrUmMO4fUvW6zavA5LYxtlAiQv0KQ==
---- END SSH2 PUBLIC KEY ----
# Display the host public key of the local RSA key pair
rsa1
in OpenSSH format.
<Sysname> system-view
[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
mdc-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 the name
key1
to the peer host public key and enter public key view.
Содержание FlexNetwork 7500 Series
Страница 350: ...335 Related commands display port security port security enable ...
Страница 379: ...364 Sysname system view Sysname keychain abc mode absolute Sysname keychain abc tcp kind 252 ...
Страница 519: ...504 Related commands display ssh2 algorithm ssh2 algorithm cipher ssh2 algorithm key exchange ssh2 algorithm mac ...