ssh-keyscan + known_hosts + StrictHostKeyChecking: doing it right in a personal-fleet shell script
You wrote a deploy script. It SSHes into 12 servers, runs an update, comes home. The first time you run it on a fresh laptop, every server prompts: The authenticity of host ‘203.0.113.x’ can’t be established. Continue connecting (yes/no/[fingerprint])?. …