Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-25
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]
1.1.21 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.
Note:
z
Only public key files in the format of SSH1 or SSH2 are supported.
z
Currently, only public keys whose modules are in the range 512 to 2048 bits can be
imported to the switch.
z
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.