无效的 Git RSA 密钥指纹



我开始收到此错误

Received disconnect from 192.30.253.112 port 22:2: Connection blocked because server only allows public key authentication. Please contact your network administrator.
Disconnected from 192.30.253.112 port 22

当我尝试在 git 中提交时。快速谷歌搜索建议我删除~/.ssh/known_hosts中的数据并尝试。当我删除已知主机中的数据并尝试"git pull"时

我明白了。

The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:ObNq2tWLML/5O9W4GkU6sqOH5e3KNdxtxT3KU1/9gok.
Are you sure you want to continue connecting (yes/no)

但是,我得到的RSA密钥指纹与github提供的指纹不匹配

如果我给出是并继续,我会收到此错误。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

我现在应该怎么做?

无法提交或拉取。

如果哈希不匹配,则表示您与之通信的服务器发送了不同的密钥。Github可能不会在没有明显公开警告的情况下更改密钥。因此,该服务器是模拟 github 服务器的不同服务器。它可能是邪恶的攻击者和/或公司代理。

- 斯蒂芬·古里雄

最新更新