0
点赞
收藏
分享

微信扫一扫

ssh登陆 “remote host identification has changed!“ 解决方案

GhostInMatrix 2022-07-27 阅读 72


具体错误信息如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
52:e3:eb:82:74:18:4a:08:2d:19:d3:91:3a:71:da:0c.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:97
ECDSA host key for 10.10.140.114 has changed and you have requested strict checking.
Host key verification failed.
lost connection

解决办法:

vi /etc/ssh/ssh_config
StrictHostKeyChecking no

或者

将ssh源主机(输入ssh命令的机器)中/root/.ssh/known_hosts中对应机器ip的信息删除

拓展阅读:
​​​http://www.51testing.com/html/38/225738-234384.html​​

个人微信公众号:

ssh登陆 “remote host identification has changed!“ 解决方案_changed

作者:jiankunking ​


举报

相关推荐

ssh登陆

0 条评论