LInux SSH connection error and solution, linuxssh
This may occur when the Linux system accesses a remote host:
[kiosk@fundation20 ~]$ ssh root@172.25.20.1 -X@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack)!It is also possible that a host key has just been changed.The fingerprint for the RSA key sent by the remote host ise6:08:b3:4c:c5:ed:f6:51:b0:68:aa:0a:2e:9a:02:28.Please contact your system administrator.Add correct host key in /home/kiosk/.ssh/known_hosts to get rid of this message.Offending RSA key in /home/kiosk/.ssh/known_hosts:9RSA host key for 172.25.20.1 has changed and you have requested strict checking.Host key verification failed.
Solution
[kiosk@fundation20 ~]$ rm -fr /home/kiosk/.ssh/known_hosts
Connect again
[kiosk@fundation20 ~]$ ssh root@172.25.20.1 -XThe authenticity of host '172.25.20.1 (172.25.20.1)' can't be established.RSA key fingerprint is 97:cf:3b:f8:be:fc:2f:c1:ee:be:1b:ab:2f:fe:a7:ff.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '172.25.20.1' (RSA) to the list of known hosts.root@172.25.20.1's password: Last login: Tue Jan 30 19:50:06 2018 from 172.25.20.250[root@server1 ~]#