How to skip the SSH fingerprint check on Linux
Knowledge Base - How To
In case a SSH connection is attempted to a server for the first time, the prompt will ask to add the server's fingerprint:
$ ssh remote_server_user@remote_server_ip
The authenticity of host 'remote_server_ip (remote_server_ip)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?
To skip the above, use the flag "trictHostKeyChecking no" like
$ ssh -o "StrictHostKeyChecking no" remote_server_user@remote_server_ip
Warning: Permanently added 'remote_server_ip' (ECDSA) to the list of known hosts.
remote_server_user@remote_server_ip's password:
Note that this will add automatically the fingerprint in the known_hosts of the local user that is attempting the connection