ssh known-host remove

Syntax

ssh known-host remove {all | (<IPv4-ADDRESS> | <HOSTNAME> | <IPv6-ADDRESS>)}

Description

Clears the list of trusted SSH servers for your user account. When you download or upload a file to or from a server using SFTP, you establish a trusted SSH relationship with that server. Each user account maintains its own set of SSH server host-keys for every server to which the user previously connected.

Command context

config

Parameters

all

Clears the trusted servers list.

<IPv4-ADDRESS>

Specifies the IPv4 address of the remote device.

<HOSTNAME>

Specifies the host name of the remote device. The length of the host name can be up to 255 characters.

<IPv6-ADDRESS>

Specifies the IPv6 address of the remote device.

Authority

Administrators

Examples

Clearing the trusted server list:

switch(config)# ssh known-host remove all

Removing a specified server from the trusted server list:

switch(config)# ssh known-host remove 1.1.1.1