Security News > 2021 > July > How to remove or update a single entry from the SSH known_hosts file
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.