< Home

dsa local-key-pair destroy

Function

The dsa local-key-pair destroy command deletes local DSA host key pairs.

Format

dsa local-key-pair destroy

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

DSA applies to SSH verification. The asymmetric encryption system generates public and private keys to implement secure key exchange, thereby ensuring secure sessions. You can run the dsa local-key-pair create command to generate local DSA keys. When local DSA keys are unnecessary, you can run the dsa local-key-pair destroy command to delete these keys.

Prerequisite

The local DSA keys have been created.

Configuration Impact

After you run this command, the **_DSA file that stores DSA keys on the device is cleared.

Precautions

The dsa local-key-pair destroy command takes effect once, and therefore will not be saved in the configuration file.

Example

# Delete local DSA keys.

<HUAWEI> system-view
[HUAWEI] dsa local-key-pair destroy
Info: The name of the key which will be destroyed is HUAWEI_Host_DSA.                                                       
Warning: These keys will be destroyed. Continue? [Y/N]:y                                                             
Info: Succeeded in destroying the DSA host keys. 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >