ecc local-key-pair create

Function

The ecc local-key-pair create command generates a local ECC host key pair.

By default, no local ECC host key pair exists in the system.

Format

ecc local-key-pair create

Parameters

Parameter Description Value
ecc

Displays the public key in the local ECC key pair.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

Usage Scenario

A local key pair is a prerequisite to a successful SSH login. Compared with the RSA algorithm used by the rsa local-key-pair create command, the ECC algorithm shortens the key length, accelerates the encryption, and improves the security. The length of the server key pair and the host key pair can be 256 bits, 384 bits and 521 bits. By default, the length of the key pair is 521 bits.

Precautions

The generated ECC host key pair is named in the format of device name_Host_ECC, such as HUAWEI_Host_ECC.

If no local key pair is configured when you log in to the device through SSH, the system automatically generates a local key pair.

The ecc local-key-pair create command is not saved in the configuration file. It only needs to be run once and takes effect even after the device restarts.

Example

# Generate a local ECC host key pair and a server key pair.
<HUAWEI> system-view
[~HUAWEI] ecc local-key-pair create
Info: The key name will be: HUAWEI_Host_ECC
Info: The key modulus can be any one of the following: 256, 384, 521.
Info: Key pair generation will take a short while.
Please input the modulus [default=521]:521
Info: Generating keys...
Info: Succeeded in creating the ECC host keys.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >