SSH cannot be connected and the system prompts remote host identification has changed solution:
If the message is as follows:
@ Warning: remote host identification haschanged! @
It is possiblethat someone is doing something nasty!
Someone couldbe eavesdropping on you right now (man-in-the-middle attack )!
It is alsopossible that the RSA host key has just been changed.
Thefingerprint for the RSA key sent by the remote host is
3c: 3C: 4b: F9: 37: 2f: 76: 61: 15: 65: E5: 80: 1b: DB: A7: 3C.
Please contactyour system administrator.
Add correcthost key in/root/. Ssh/known_hosts to get rid of this message.
Offending keyin/root/. Ssh/known_hosts: 15
RSA host keyfor 192.168.0.252 has changed and you have requested strict checking.
Host keyverification failed.
Rsync: Connection unexpectedly closed (0 bytes encoded Ed so far) [Sender]
Rsync error: Error in rsync protocol data stream (Code 12) at I/O. C (359)
Solution:
VI/root/. Ssh/known_hosts
Find the IP address of the host you want to connect to and delete all the information in that line (that is, one line)
SSH cannot be connected and the remote host identification has changed is prompted