Sometime, especially on script, is necessary to avoid fingerprint host check. You can do this by setting ‘StrictHostKeyChecking no’ on /etc/ssh/ssh_config or passing it via command line as option:
ssh -o 'StrictHostKeyChecking no' account@server
..or use public key: https://241931348f64b1d1.wordpress.com/2014/06/03/how-to-configure-esxi-to-use-public-key-authentication-for-ssh/