The ssh logon prompt "Host key verification failed. "solution 1. In some cases, when different ports are connected to different linux Hosts like an IP address, this prompt may be displayed. 2. The error message is as follows: @ WARNING: remote host identification has changed! @ It is possible that someone is doing something nasty! Someone cocould be eavesdropping on you right now (man-in-the-middle attack )! It is also possible that the RSA host key has just been changed. the fingerprint for the RSA key sent by the remote host is 23: 00: 20: 83: de: 02: 95: f1: e3: 34: be: 57: 3f: cf: 2c: e7. Please contact your system administrator. add correct host key in/home/xahria /. ssh/known_hosts to get rid of this message. offending key in/home/xahria /. ssh/known_hosts: 8 RSA host key for localhost has changed and you have re Quested strict checking. Host key verification failed. 3. Anyone using OpenSSH knows that ssh will record the public key of every computer you have accessed ~ /. Ssh/known_hosts. When you access the same computer next time, OpenSSH checks the public key. If the public key is different, OpenSSH will issue a warning to avoid attacks such as DNS Hijack. 4. In. configuration item StrictHostKeyChecking in ssh/config (or/etc/ssh/ssh_config): The default value is ask. If the connection and key do not match, a prompt is displayed and logon is denied, it is commented out by default. Yes: if the connection does not match the key, the connection is rejected and no prompt is displayed. No: if the connection key does not exist locally, it is automatically added to the file (known_hosts by default) and a warning is given to indicate that the connection is successful. 5. To prevent warnings and resolve connections between different ports of the same IP address, you can selectively reduce the security by using the following Configuration: vi/etc/ssh/ssh_config StrictHostKeyChecking no UserKnownHostsFile/dev/null # Set knownhostfile to/dev/null and it will not be saved in known_hosts.