H3C S3100 Series Command Manual page 790

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Description
Use the rsa local-key-pair create command to generate an RSA key pair for the
current switch.
Note that:
After entering this command, you will be prompted to provide the length of the key
pair. The length of a server/host key must be in the range 512 to 2048 bits and
defaults to 1024. If the key pair already exists, the system will ask you whether you
want to overwrite it.
The configuration of this command can survive a reboot. You only need to
configure it once.
After the RSA key pair is generated, the display rsa local-key-pair public
command displays two public keys (the host public key and server public key)
when the S3100 switch is working in SSH1-compatible mode, but only one public
key (the host public key) when the switch is working in SSH2 mode.
Related commands: rsa local-key-pair destroy, display rsa local-key-pair public.
Examples
# Generate a local RSA key pair.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rsa local-key-pair create
The local-key-pair will be created.
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 1024]:
Generating keys...
........................++++++
.......++++++
.................................++++++++
...++++++++
........Done!
# Display the public key part of the current switch's RSA key pair(s).
[Sysname] display rsa local-key-pair public
=====================================================
Time of Key pair created: 02:31:51
Key name: Sysname_Host
Key type: RSA encryption Key
=====================================================
2000/04/09
1-22
Chapter 1 SSH Commands

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents