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

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Examples
# Enter Switch002 public key view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rsa peer-public-key Switch002
RSA public key view: return to System View with "peer-public-key end".
[Sysname-rsa-public-key]

rsa peer-public-key import sshkey

Syntax
rsa peer-public-key keyname import sshkey filename
undo rsa peer-public-key keyname
View
System view
Parameters
keyname: Name of the public key to be configured, 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 rsa peer-public-key import sshkey command to import a peer public key from the public key
file.
Use the undo rsa peer-public-key command to remove the setting.
Only public key files in the format of SSH1 or SSH2 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.
The rsa peer-public-key import sshkey command can transform only RSA public keys. If you want
DSA public keys to be transformed and configured automatically, use the public-key peer import
sshkey command.
1-22

Advertisement

Table of Contents
loading

Table of Contents