Fit AP V200R010C00 Command Reference

rsa local-key-pair destroy

rsa local-key-pair destroy

Function

The rsa local-key-pair destroy command deletes all local RSA host and server key pairs.

Format

rsa local-key-pair destroy

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To delete the local key pair, run rsa local-key-pair destroy command. If the host key pair and the service key pair of an SSH server are deleted, run the rsa local-key-pair create command to create the new host key pair and service key pair for the SSH server.

After you run this command, verify that all local RSA keys are deleted. This command is not saved in a configuration file.

Prerequisite

The local RSA keys that can be deleted exist.

Example

# Delete all RSA server keys.

<Huawei> system-view
[Huawei] rsa local-key-pair destroy
 The name for the keys which will be destroyed is Host.                        
 Confirm to destroy these keys? (y/n)[n]:y 
Translation
Favorite
Download
Update Date:2021-02-27
Document ID:EDOC1100064353
Views:3214241
Downloads:4071
Average rating:4.0Points