WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
程序员文章站
2022-07-10 11:16:27
...
SSH访问远程主机时,出现这种情况的解决办法:
[kiosk@fundation20 Desktop]$ ssh root@172.25.20.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
8b:a9:67:d4:9c:78:34:b2:4f:87:61:cb:56:ac:78:4c.
Please contact your system administrator.
Add correct host key in /home/kiosk/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/kiosk/.ssh/known_hosts:4
RSA host key for 172.25.20.1 has changed and you have requested strict checking.
Host key verification failed.
如下图
方法一
- 直接删除/home/kiosk/.ssh/known_hosts文件,再次连接时会重新生成
[kiosk@fundation20 ~]$ rm -fr /home/kiosk/.ssh/known_hosts
方法二
- 例如我这里所要连接的IP是172.25.20.1
- 删掉里面与所要连接IP(172.25.20.1)相关的内容
[kiosk@fundation20 ~]$vi /home/kiosk/.ssh/known_hosts
再次连接成功!
[aaa@qq.com Desktop]$ ssh aaa@qq.com172.25.20.1
The authenticity of host '172.25.20.1 (172.25.20.1)' can't be established.
RSA key fingerprint is 8b:a9:67:d4:9c:78:34:b2:4f:87:61:cb:56:ac:78:4c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.25.20.1' (RSA) to the list of known hosts.
aaa@qq.com172.25.20.1's password:
Last login: Tue Jan 30 19:50:06 2018 from 172.25.20.250
[aaa@qq.com ~]#
推荐阅读
-
【linux】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
-
ssh登录提示WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
ARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!解决方法
-
linux 报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!(成功解决!)
-
SSH登录:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
mac终端下ssh虚拟机中的linux提示WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
-
Mac和Linux远程连接服务器异常修复(WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)