gpt4 book ai didi

Eclipse 更新 2021-03 后 git auth 失败

转载 作者:行者123 更新时间:2023-12-04 12:13:59 25 4
gpt4 key购买 nike

在最近的 Eclipse 更新 2021-03 之后,所有 bitbucket.org 存储库都无法再 pull/推:

Pulling 1 repository
git@bitbucket.org:Acountxxx/Repoxxx.git: Cannot log in at bitbucket.org:22
git@bitbucket.org:Acountxxx/Repoxxx.git: Cannot log in at bitbucket.org:22
我尝试在一个新的工作区中克隆存储库,也使用 ssh:
URI:ssh://bitbucket.org/REPOxxxx.git
主持人:bitbucket.org
存储库路径:REPOxxxxx.git
协议(protocol):ssh
端口:空白
用户:空白
密码:空白
遇到同样的异常:
ssh://bitbucket.org:Acountxxx/Repoxxx.git: Cannot log in at bitbucket.org:22
CMD git pullgit push仍然工作正常。
有没有人遇到同样的问题并找到解决方案?
环境:
视窗 10
git 版本 2.30.1.windows.1
eclipse 2021-03
EGit:5.11.0.202103091610-r
编辑 :也很有趣,其他存储库,例如从 github 仍然工作正常。此行为对于 bitbucket 上的私有(private)和公共(public)存储库是相同的。

最佳答案

根据howlger的信息关于 Known_problems -> Bug 572056 - Cannot work with Bitbucket after Eclipse update我做了以下解决方法来解决这个问题。
打开 CMD 并运行:

ssh-keygen -t ed25519
这创建了一个新 key :C:/Users/USER/.ssh/id_ed25519
登录到 bitbucket 并将公钥文件(C:/Users/USER/.ssh/id_ed25519.pub)的内容添加为新 key :
https://bitbucket.org/account/settings/ssh-keys/
在eclipse首选项中配置这个键:
enter image description here
之后 pull 和 push 再次起作用。一些研究表明,ed25519 比默认的 RSA 算法更安全、更快,因此实际上是一个非常好的解决方案。

关于Eclipse 更新 2021-03 后 git auth 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66746353/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com