Public-Key Peer; Public-Key Peer Import Sshkey - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

---- END SSH2 PUBLIC KEY ----
# Export the public key in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export dsa openssh key.pub

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.
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]

public-key peer import sshkey

Syntax
public-key peer keyname import sshkey filename
undo public-key peer keyname
1-16

Advertisement

Table of Contents
loading

Table of Contents