NOTE: I do not recommend this but it may be necessary for some sort of backup or pull system. Please only do this if you absolutely have to. It’s kind of like taking down your fire alarm in the kitchen!!

Option 1: On the CLI

$ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected]

Option 2: In your config file (the .ssh/config or /etc/ssh/ssh_config ):

StrictHostKeyChecking no UserKnownHostsFile=/dev/null

More from here.

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.