ssh时遇到 WARNING: POSSIBLE DNS SPOOFING DETECTED! 的解决方法

来源:互联网 发布:尚学堂java视频下载 编辑:程序博客网 时间:2024/06/02 01:59

背景:

前几天配置好的TK1突然歇菜了,没办法,只能够重新配置另一块新的TK1(感谢土豪boss),经过几个小时的安装,终于“整”好了新的TK1,

当我想在笔记本上用 远程控制命令:

administrator@ubuntu:~$ ssh ubuntu@tegra-ubuntu.local

访问我的新TK1时,出现如下错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@The ECDSA host key for tegra-ubuntu.local has changed,and the key for the corresponding IP address 192.168.1.113is unknown. This could either mean thatDNS SPOOFING is happening or the IP address for the hostand its host key have changed at the same time.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    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 isae:78:c9:74:a7:05:79:8d:81:f4:09:48:68:b2:57:a1.Please contact your system administrator.Add correct host key in /home/administrator/.ssh/known_hosts to get rid of this message.Offending ECDSA key in /home/administrator/.ssh/known_hosts:1  remove with: ssh-keygen -f "/home/administrator/.ssh/known_hosts" -R tegra-ubuntu.localECDSA host key for tegra-ubuntu.local has changed and you have requested strict checking.Host key verification failed.
解决方法:

ssh-keygen -f "/home/administrator/.ssh/known_hosts" -R tegra-ubuntu.local

网上也有其他的方法,但在我这里却很难奏效,比如:

http://www.linuxidc.com/Linux/2012-07/64941.htm


0 0
原创粉丝点击