user known-hosts delete

Purpose

Delete the stored public key for the named host from the known hosts file for the current user. When the user issues command file get|put scp://user@host/dir, the public key of the host is saved in a local file, and used to verify the host's identity on subsequent file get|put scp:// commands. If the host changes its key, that verification can fail. Use this command to delete the public key stored for a known host, so the host's new key can be learned.

Syntax

user known-hosts delete hostname

Parameters

hostname
Host name or IP address of the known hosts entry to be deleted.

Related Commands

See user known-hosts list

Example

Delete the public key for known host aaa.example.com from the currently logged-in user's known hosts list.
 <p>Console&gt; user known-hosts delete aaa.example.com
   CWZBR02196I: Ok
   Console&gt;</p>