Problem
[Email protected]_exercise mnt]# SCP [email protected]:/etc/profile.d/motd1.sh/etc/profile.d/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ warning:remote HOST Identification has changed! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!
Someone could is eavesdropping on your right now (Man-in-the-middle attack)!
It is also possible, the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
c4:8b:39:c7:25:ff:dd:e3:8f:56:d4:d6:1b:8b:98:5b.
Please contact your system administrator.
Add correct host key in/root/.ssh/known_hosts to get rid of the this message.
Offending key In/root/.ssh/known_hosts:4
RSA host key for 172.16.40.240 had changed and you have requested strict checking.
Host Key verification failed.
[[Email protected]_exercise mnt]# ssh 172.16.40.240
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ warning:remote HOST Identification has changed! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!
Someone could is eavesdropping on your right now (Man-in-the-middle attack)!
It is also possible, the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
c4:8b:39:c7:25:ff:dd:e3:8f:56:d4:d6:1b:8b:98:5b.
Please contact your system administrator.
Add correct host key in/root/.ssh/known_hosts to get rid of the this message.
Offending key In/root/.ssh/known_hosts:4
RSA host key for 172.16.40.240 had changed and you have requested strict checking.
Host Key verification failed.
Analysis
Known_hosts is a file that records the public key of the remote host, before the system is re-installed, and the saved public key is not the system's public key, the SSH link will first verify the public key, if the public key is not correct, then will be error.
"Solution"
Method one: [email protected]_exercise mnt]# vim ~/.ssh/known_hosts
Delete the 172.16.40.240 information about RSA.
Method Two: Ssh-keygen-r 172.16.40.240
This article from "Doublelinux" blog, declined reprint!
Linux SSH telnet Error and resolution Warning:remote HOST identification has changed!