known_hosts

The file where the SSH client stores host keys it has accepted, one per server, to check them on later connections.

In more detail

If a server's key no longer matches, ssh refuses to connect and warns loudly. Remove the old entry with ssh-keygen -R host only after verifying the new key independently.

Related terms

Taught in

References