No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FITAP V200R010C00 Command Reference

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
rsa local-key-pair create

rsa local-key-pair create

Function

The rsa local-key-pair create command generates the local RSA host and server key pairs.

By default, the local RSA host and server key pairs are not configured.

Format

rsa local-key-pair create

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement secure data exchange between the server and client, run this command to generate a local key pair.

Precautions

If the RSA key pair exists, the system prompts you to confirm whether to replace the original key pair.

After you run this command, the system prompts you to enter the number of bits in the host key. The difference between the bits in the server and host key pairs must be at least 128 bits. For a server or host key pair, the minimum length is 512 bits, the maximum length is 2048 bits, and the default length is 2048 bits.

NOTE:
The RSA key pair whose length is less than 1024 digits is insecure and therefore not recommended to use.

To successfully log in to the SSH server, a local RSA key pair must be configured and generated. Before performing other SSH configurations, you must use the rsa local-key-pair create command to generate a local key pair.

After you run this command, the generated key pair is saved in the device and will not be lost after the device restarts.

Example

# Generate the local RSA host and server key pairs.

<Huawei> system-view
[Huawei] rsa local-key-pair create
The key name will be: Host
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 = 2048]:2048
Generating keys...
......................++++++++
........................................................++++++++
........+++++++++
.....+++++++++
Translation
Download
Updated: 2019-05-14

Document ID: EDOC1100064353

Views: 88623

Downloads: 61

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next