Interview Prep/Linux/Networking, SSH & Scheduling

What is the `known_hosts` file and the host key warning?

IntermediateConceptNetworking, SSH & Scheduling
Answer

On first connect, ssh stores the server's host public key in ~/.ssh/known_hosts. Later, if the server presents a different key, ssh aborts with WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! because it could be a man-in-the-middle. It is also normal after a rebuild or IP reuse in the cloud. Verify, then remove the old entry:

ssh-keygen -R 10.0.1.25
All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling