由于远程服务器重新安装了系统。在使用ssh连接服务器的时候报了这个错误。

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is

解决办法,修改一个存储rsa的文件

文件路径:

~/.ssh/known_hosts

vi ~/.ssh/known_hosts

找到你所连接的主机的信息,把他删除,重新连接就可以了。。