Security News > 2021 > July > How to remove or update a single entry from the SSH known_hosts file

How to remove or update a single entry from the SSH known_hosts file
2021-07-29 18:20

SSH holds fingerprints of your remote machines in the known hosts file.

The SSH known hosts file contains fingerprints of the known machines you've logged into.

Say, you've migrated your database server to a different IP. Your known hosts file still has the key from the previous IP, so when you try to log into the new IP address, SSH will complain.

To make this work, you'll need a machine running SSH with entries in the known hosts file.

The entry associated with 192.168.1.71 will be removed and a new backup copy of known hosts will be saved as known hosts old.

That's how you can easily remove or update an entry in the SSH known hosts file.


News URL

https://www.techrepublic.com/article/how-to-remove-or-update-a-single-entry-from-the-ssh-known-hosts-file/#ftag=RSS56d97e7

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
SSH 7 2 8 4 1 15