首页 > 代码库 > Linux:SSH错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "
Linux:SSH错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "
hadoop@master:~$ scp /home/hadoop/.ssh/authorized_keys node3:/home/hadoop/.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.The fingerprint for the ECDSA key sent by the remote host isa8:68:2e:0e:1e:67:33:db:0f:f8:d0:0b:43:fe:17:e2.Please contact your system administrator.Add correct host key in /home/hadoop/.ssh/known_hosts to get rid of this message.Offending ECDSA key in /home/hadoop/.ssh/known_hosts:6 remove with: ssh-keygen -f "/home/hadoop/.ssh/known_hosts" -R node3ECDSA host key for node3 has changed and you have requested strict checking.Host key verification failed.lost connection
出现错误原因:
之前使用ssh登录过该机器,在~/.ssh/known_host中记录了该信息。
解决方案:删除known_host文件中的内容。
hadoop@master:~$ cd .sshhadoop@master:~/.ssh$ lsauthorized_keys id_rsa id_rsa.pub known_hostshadoop@master:~/.ssh$ sudo vim known_hosts[sudo] password for hadoop:hadoop@master:~/.ssh$ scp authorized_keys node1:/home/hadoop/.ssh/authorized_keys 100% 395 0.4KB/s 00:00hadoop@master:~/.ssh$ scp authorized_keys node2:/home/hadoop/.ssh/authorized_keys 100% 395 0.4KB/s 00:00hadoop@master:~/.ssh$ scp authorized_keys node3:/home/hadoop/.ssh/hadoop@node3‘s password:authorized_keys 100% 395 0.4KB/s 00:00hadoop@master:~/.ssh$
参考:http://www.cnblogs.com/york-hust/archive/2012/03/27/2420168.html
Linux:SSH错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。