首页 > 解决方案 > GitExtenstions UI 阻止克隆“服务器的主机密钥不匹配”

问题描述

当尝试使用 Git Extensions 克隆存储库并且服务器的主机密钥已更改时,日志窗口报告和错误。但是,用户界面不允许回答提示。此时唯一能做的就是中止。

"C:\Program Files\Git\bin\git.exe" fetch --progress "origin"
WARNING - POTENTIAL SECURITY BREACH!
The server's host key does not match the one PuTTY has
cached in the registry. This means that either the
server administrator has changed the host key, or you
have actually connected to another computer pretending
to be the server.
The new ssh-ed25519 key fingerprint is:
ssh-ed25519 256 eb:db:****:68:09:48
If you were expecting this change and trust the new key,
enter "y" to update PuTTY's cache and continue connecting.
If you want to carry on connecting but without updating
the cache, enter "n".
If you want to abandon the connection completely, press
Return to cancel. Pressing Return is the ONLY guaranteed
safe choice.
Update cached key? (y/n, Return cancels connection)

如何解决这个问题?

标签: git-extensions

解决方案


修复方法是菜单Repository >> Remote Repositories并使用 [ Test connection ] 按钮。这会在可以输入的控制台窗口中显示相同的消息和提示。

在此处输入图像描述


推荐阅读