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

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches

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: Name of the public key , a string of 1 to 64 characters.
filename: Name of a public key file, a string of 1 to 142 characters. For file naming rules,
refer to File System Management Command.
Description
Use the public-key peer import sshkey command to import a peer public key from
the public key file.
Use the undo public-key peer command to remove the setting.
Note:
Only public key files in the format of SSH1, SSH2, or OpenSSH are supported.
Currently, only public keys whose modules are in the range 512 to 2048 bits can be
imported to the switch.
You may use this command to configure an SSH peer's public key on the current
switch. After you issue this command, the system will automatically identify the
format of the public key, transforms the public key into the PKCS format, and saves
the public key locally. This public key configuration method requires that the public
key file be uploaded to the current switch through FTP or TFTP.
Examples
# Import the public key of the user from the public key file named pub.ppk and name it
as peer.pk.
<Sysname>system-view
System View: return to User View with Ctrl+Z.
[Sysname] public-key peer peer.pk import sshkey pub.ppk
1-19
Chapter 1 SSH Commands

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents