Thursday, August 22, 2019

Removing particular Host name form SSH known_host list

To remove a specific host from the SSH known_hosts list. we can use the below command:

ssh-keygen -R hostname
Instead of hostname, we can directly use the IP also.

 If we want to remove non-standard ssh port,  then we can use this format

ssh-keygen -R [ssh.xxx.com]:[port no]



No comments: