host key checking

SSH's check that a server's identity key matches the one recorded the first time you connected, protecting you from impostor servers.

Turning it off lets an impostor server receive your logins and commands unnoticed.

In more detail

On first contact SSH asks whether to trust an unknown host key and remembers the answer in known_hosts. Setting host_key_checking = False in ansible.cfg skips the question, which keeps a demonstration quiet but in production would let an attacker pretend to be your server and capture what you send it. Pre-load known host keys instead.

Example

host_key_checking = False

Related terms

Taught in

References

Certification courses