Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-18
# Export the public key in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export dsa openssh key.pub
1.1.14 public-key peer
Syntax
public-key peer keyname
undo public-key peer
keyname
View
System view
Parameters
keyname
: Name of the public key, 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 configuring this command, you enter public key view. You can use this command
together with the
public-key-code begin
command to configure the peer public key.
This public key configuration method requires that you obtain the public key in
hexadecimal format in advance.
Note:
Only the public key whose module is of 512 to 2,048 bits can be configured on the
device currently.
Related commands:
public-key-code begin
,
public-key-code end
.
Examples
# Enter public key view
<Sysname>system-view
System View: return to User View with Ctrl+Z.
[Sysname]public-key peer pub.ppk
PKEY public key view: return to System View with "peer-public-key end".
[Sysname-peer-public-key]