delete ssh client server-public-key

Use delete ssh client server-public-key to delete server public key information saved in the public key file of the SSH client.

Syntax

delete ssh client server-public-key [ server-ip ip-address ]

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

server-ip ip-address: Specifies the IP address of the server whose public key information will be deleted. If you do not specify a server IP address, this command deletes the public keys of all servers from the client's public key file.

Examples

# Delete all server public keys saved in the public key file of the SSH client.

<Sysname> system-view
[Sysname] delete ssh client server-public-key
Public keys of all SSH servers will be deleted. Continue? [Y/N]:y

# Delete the public key of server 2.2.2.1 saved in the public key file of the SSH client.

<Sysname> system-view
[Sysname] delete ssh client server-public-key server-ip 2.2.2.1