And welcome to MITM haven. This is awful advice if you care about the first S in SSH.
And welcome to MITM haven. This is awful advice if you care about the first S in SSH.
On your home box, sure. But let's not pretend there's not a reason for the option to exist.
alias ssht='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
ssht floaty.vm # does not use host key checking
ssh my.bastion.host # validates host key
Really I ought to get SSHFP records populated when my vm's are created...
https://www.digitalocean.com/community/tutorials/how-to-crea...
There are two other modes to use. Either DNSSEC with SSHFP fingerprints, or sign your host keys with a CA key that you install on all your machines.
A decent configuration management tool could also keep known_hosts up to date, but it tends not to be worth the trouble. Do the above first.