Linux SSH jump server reported Host key verification failed problem solved

  

Another server installed a new system, the result is ssh jump through the original server error, and later the reason is because ssh will take you Every public key you have visited your computer is recorded in ~/.ssh/known_hosts. OpenSSH will check the public key the next time you access the same computer. If the public key is different, OpenSSH will issue a warning to prevent you from being attacked by DNS Hijack. After knowing the reason, I started to solve it.

The error message is as follows:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ !Someone could 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 is23: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/adm/.ssh/known_hosts to get rid Of this message.Offending key in /home/adm/.ssh/known_hosts:8RSA host key for localhost has changed and you have requested strict checking.Host key verification failed.

Solutions

If it is occasionally Appears, you can use this method:
ssh-keygen -R Target IP

If it is encountered under the pure intranet, you can do this:
vi /etc/ssh/ssh_config

Modify the inside Value:
StrictHostKeyChec King = no

This is the solution.

Copyright © Windows knowledge All Rights Reserved