Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-12
z
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.
z
The configuration of this command can survive a reboot. You only need to
configure it once.
Related commands:
public-key local destroy
,
display public-key local
.
Examples
# Create an RSA key pair of 512 bits.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] public-key local create rsa
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]: 512
Generating keys...
...++++++
...................................................................++++++
...........................++++++++
.....++++++++
......
# Display the public key part of the RSA key pair(s).
[Sysname] display public-key local rsa public
=====================================================
Time of Key pair created: 03:14:23 2000/04/06
Key name: Sysname_Host
Key type: RSA encryption Key
=====================================================
Key code:
305C300D06092A864886F70D0101010500034B003048024100D6665EFEC14F48A5B42A413E
2FACCAA9F02C772AEDC4911E76AAEE55BA49C4A0233D2D80504068BD9C892C0DD9EBBBC7EB
8842ED61CDB418A29CA1362BB48C190203010001
=====================================================
Time of Key pair created: 03:14:36 2000/04/06
Key name: Sysname_Server
Key type: RSA encryption Key
=====================================================