解决服务器密码修改后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

posted @ 2020-07-03 15:15  cdfive  阅读(593)  评论(0编辑  收藏  举报