ssh skip host key verification code example
Example: ssh ignore host key verification
In your ~/.ssh/config (if this file doesn't exist, just create it):
Host *
StrictHostKeyChecking no
Rather than adding it to your ~/.ssh/config file for all Host *, it would be a safer to specify a particular host.
You can also pass a parameter on the command-line like this:
ssh -o StrictHostKeyChecking=no yourHardenedHost.com