CygWin遇到WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED解决方法

来源:互联网 发布:演讲书籍推荐知乎 编辑:程序博客网 时间:2024/06/08 03:45

本文解决办法学习自http://linuxme.blog.51cto.com/1850814/375752,所有权力归原作者所有。


在使用Spark on Yarn集群时,集群系统重装后,使用CygWin远程登录集群时,出现

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
d0:00:7c:bc:88:5c:dc:de:89:61:44:30:00:60:f9:b2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.4.222 has changed and you have requested strict checking.
Host key verification failed.


解决办法:

进入CygWin的安装目录下,并到home目录下进入使用的账户目录,到.ssh文件夹中找到known_hosts文件,用记事本或者notepad++等打开,将当前要连接的host地址的相关信息删除(一行),然后重新登录即可。

或者在进入的CygWin的命令行下,使用linux命令编辑以同样的方法修改该文件即可。

0 0
原创粉丝点击