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.