Linux:SSH错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux:SSH错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "相关的知识,希望对你有一定的参考价值。
[email protected]:~$ 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 is a8: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 node3 ECDSA host key for node3 has changed and you have requested strict checking. Host key verification failed. lost connection
出现错误原因:
之前使用ssh登录过该机器,在~/.ssh/known_host中记录了该信息。
解决方案:删除known_host文件中的内容。
[email protected]:~$ cd .ssh hadoop@master:~/.ssh$ ls authorized_keys id_rsa id_rsa.pub known_hosts hadoop@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:00 hadoop@master:~/.ssh$ scp authorized_keys node2:/home/hadoop/.ssh/ authorized_keys 100% 395 0.4KB/s 00:00 hadoop@master:~/.ssh$ scp authorized_keys node3:/home/hadoop/.ssh/ [email protected]‘s password: authorized_keys 100% 395 0.4KB/s 00:00 hadoop@master:~/.ssh$
参考:http://www.cnblogs.com/york-hust/archive/2012/03/27/2420168.html
以上是关于Linux:SSH错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "的主要内容,如果未能解决你的问题,请参考以下文章
“WARNING:tornado.access:405”错误从“localhost”和“file://”来源停止 POST
Warning:session_start()failed: 错误
redis-trib.rb reshard 出现错误redis-trib.rb:1573: warning: key "threshold" is duplicated and o
为啥我在启动模拟器时会收到此 GRPC 错误“WARNING: EmulatorService.cpp:448: Cannot find certfile”?