Command Manual – SSH
H3C S7500E Series Ethernet Switches Chapter 1 SSH Configuration Commands
1-13
1.1.14 public-key peer
Syntax
public-key peer keyname
undo public-key peer keyname
View
System view
Parameters
keyname: Public key name, a string of 1 to 64 characters.
Description
Use the public-key peer command to enter public key view.
Use the undo public-key peer command to delete the configuration of peer public key.
After entering public key view, you can configure the peer public key with the
public-key-code begin and public-key-code end commands. This requires that you
obtain the hexadecimal public key from the peer beforehand.
Related commands: public-key-code begin, public-key-code end.
Examples
# Enter public key view, specifying a public key name of key1.
<Sysname> system-view
[Sysname] public-key peer key1
[Sysname-pkey-public-key]
1.1.15 public-key peer import sshkey
Syntax
public-key peer keyname import sshkey filename
undo public-key peer keyname
View
System view
Parameters
keyname: Public key name, a string of 1 to 64 characters.
filename: Public key file name.