clear ssh known-hosts

Delete the SSH host key for a remote host or for all remote hosts.

Syntax

clear ssh known-hosts <host>|all

Syntax Description

Keyword
Description

host

The host for which the SSH key is to be deleted.

all

Deletes the SSH host key for all known hosts.

Defaults

None; either a host or all must be specified.

Usage Guidelines

This command allows the user to delete the remote SSH host key for a single host, or for all known hosts.

Examples

clear ssh known-hosts server17.example.com
clear ssh known-hosts all
sshconfigure known-hosts

Last updated