解决服务器密码修改后mac终端ssh连接报错

服务器密码修改后,mac终端使用ssh连接,报错提示:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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.

解决方法:
vim ~/.ssh/known_hosts,把服务器对应ip的行删除即可。


参考:
https://blog.csdn.net/Serug93/article/details/89464103

原文地址:https://www.cnblogs.com/cdfive2018/p/13230589.html