Public-Key Peer; Public-Key Peer Import Sshkey - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

AAAAB3NzaC1yc2EAAAADAQABAAAAgQDAo0dVYR1S5f30eLKGNKuqb5HU3M0TTSaGlER2GmcRI2sgSegbo1x6ut5N
Ic5+jJxuRCU4+gMc76iS8d+2d50FqIweEkHHkSG/ddgXt/iAZ6cY81bdu/CKxGiQlkUpbw4vSv+X5KeE7j+o0MpO
pzh3W768/+u1riz+1LcwVTs51Q==
---- END SSH2 PUBLIC KEY ----
# Display the local RSA public key in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export rsa openssh
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgQDAo0dVYR1S5f30eLKGNKuqb5HU3M0TTSaGlER2GmcRI2sgSegbo1x6ut5N
Ic5+jJxuRCU4+gMc76iS8d+2d50FqIweEkHHkSG/ddgXt/iAZ6cY81bdu/CKxGiQlkUpbw4vSv+X5KeE7j+o0MpO
pzh3W768/+u1riz+1LcwVTs51Q== rsa-key

public-key peer

Syntax
public-key peer keyname
undo public-key peer keyname
View
System view
Default Level
2: System level
Parameters
keyname: Host public key name of the peer, a case-sensitive string of 1 to 64 characters.
Description
Use the public-key peer command to specify a name for a peer's host public key and enter public key
view.
Use the undo public-key peer command to remove a peer's host public key.
After entering public key view, you can configure the public key of the peer with the public-key-code
begin and public-key-code end commands. This operation requires that you obtain the hexadecimal
public key from the peer beforehand.
Related commands: public-key-code begin, public-key-code end, display public-key peer.
Examples
# Specify the name for the peer's host public key as key1 and enter public key view.
<Sysname> system-view
[Sysname] public-key peer key1
[Sysname-pkey-public-key]

public-key peer import sshkey

Syntax
public-key peer keyname import sshkey filename
1-10

Advertisement

Table of Contents
loading

Table of Contents