WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

简介:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint  for  the RSA key sent by the remote host is
25:ab:2e:55:30:11:a0:84:d8:45:2f:5b:e2:47:eb:1e.
Please contact your system administrator.
Add correct host key  in  /root/ . ssh /known_hosts  to get rid of this message.
Offending key  in  /root/ . ssh /known_hosts :1
RSA host key  for  192.168.1.240 has changed and you have requested strict checking.
Host key verification failed.
lost connection

用跳板机去连接某机器的时候出现了这样的提示,开始我以为是命令错误,仔细一看,原来是密钥验证错误,说现在这个机器的新指纹是25:ab:2e:55:30:11:a0:84:d8:45:2f:5b:e2:47:eb:1e,该服务器原来的公钥记录在文件 ~/.ssh/known_hosts 中第 1 行。


可能是我的账号信息做过更改。那么遇到这样的问题就找到该跳板机root目录下的如下的ssh连接文件夹:

1. cd ~/.ssh/

2. vi known_hosts

3. 找到和远程主机ip一致的密钥保存信息,直接dd删除,然后:x保存退出

4. 重新连接,输入密码,发现连接成功



 本文转自 苏幕遮618 51CTO博客,原文链接:http://blog.51cto.com/chenx1242/1812605

相关文章
【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from
【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from
|
7月前
|
缓存 网络安全 开发工具
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
543 0
|
7月前
|
缓存 数据安全/隐私保护 Windows
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
|
7月前
|
网络安全
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
2190 0
|
开发工具 git
git push报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
git push报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
200 0
|
安全 网络安全 开发工具
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
508 0
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
|
数据安全/隐私保护
remote: Support for password authentication was removed on August 13, 2021
remote: Support for password authentication was removed on August 13, 2021
305 0
|
开发工具 git
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
167 0
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
|
网络安全
REMOTE HOST IDENTIFICATION HAS CHANGED问题解决
REMOTE HOST IDENTIFICATION HAS CHANGED问题解决
350 0
REMOTE HOST IDENTIFICATION HAS CHANGED问题解决
|
网络安全
SSH 遇到 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
SSH 遇到 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
279 0