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 = FalseRelated terms
- SSH — A protocol for logging in to and running commands on another computer securely over a network.
- ansible.cfg — Ansible's INI-format settings file; a copy in the project directory sets options such as the inventory location and forks for everyone who runs there.
Taught in
- Ansible Architecture And The Control Node — Ansible Configuration Management at Scale
- ansible.cfg: Which File Wins, And The Settings That Matter — RHCE in Ansible (EX294): Automate Red Hat Systems
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems