GitExtenstions UI 阻止克隆“服务器的主机密钥不匹配”

问题描述 投票:0回答:2

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

"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
2个回答
10
投票

解决方法是菜单存储库>>远程存储库并使用[测试连接]按钮。这会在控制台窗口中显示相同的消息和提示,可以输入。


0
投票

非常感谢。有用。我已经寻找解决方案一周了。

© www.soinside.com 2019 - 2024. All rights reserved.