System Volume; Public-Key Peer Import Sshkey - HP E4510-48G Command Reference Manual

4510g series
Table of Contents

Advertisement

Parameters
keyname: Public key name, a case-sensitive string of 1 to 64 characters.
Description
Use the public-key peer command to configure the public key name and enter public key view.
Use the undo public-key peer command to remove a configured peer 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 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
# Enter public key view, specifying a public key name of key1.
<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
undo public-key peer keyname
View
System view
Default Level
2: System level
Parameters
keyname: Public key name, a case-sensitive string of 1 to 64 characters.
filename: Public key file name. For detailed information about file name, refer to File System
Management in the System Volume.
Description
Use the public-key peer import sshkey command to import the public key of a peer from the public
key file.
Use the undo public-key peer command to remove a configured peer public key.
After execution of this command, the system automatically transforms the public key in SSH1, SSH2.0
or OpenSSH format to PKCS format, and imports the peer public key. This requires that you get a copy
of the public key file from the peer through FTP or TFTP in advance.
Related commands: display public-key peer.
Examples
# Import the peer host public key named key2 from the public key file key.pub.
13-10

Advertisement

Table of Contents
loading

Table of Contents