“验证失败”后对话框,现在 Egit 不再询问用户名和密码

发布于 2024-12-09 05:44:27 字数 765 浏览 2 评论 0原文

我已经使用了一个为我设置的小型 git 存储库一段时间了,我正在使用 EGit 来提交和推送我的更改。 (它不是 github 或类似的东西,只是公共 git 服务器中设置的存储库)

但是,每当我使用 EGit 时,它总是会询问我的用户名和密码(并且我的用户名已经显示,因为它可能已保存)某处,可能在我的推送配置 URI 中)。然后,今天,我输错了密码,EGit 给了我一个“Auth Failed”错误。这显然是预料之中的,但是,每当我再次尝试推送时,EGit 都不会再次询问我的用户名/密码。它直接进入“身份验证失败”错误屏幕。

我尝试对我的推送配置进行一些更改,例如更改协议(最初没有定义协议,然后我尝试了 ssh 和 https)并在该配置屏幕上定义我的用户名和密码,但似乎没有任何效果。

我还尝试重新生成我的 id_rsa 密钥(我不确定我之前是否使用过它们,因为 EGit 总是要求我提供用户名/密码)但无济于事。

我通过在 StackOverflow 中搜索类似的问题来遵循许多可能的解决方案,但没有一个对我有用。

卸载并重新安装EGit插件不起作用。完全删除Eclipse文件夹并从头开始重新安装也不起作用。

所以,基本上,我想要的是 Egit 再次开始询问我的用户名和密码。

有谁知道这种不询问用户名/密码的行为可能是什么原因,以及如何使其再次起作用?

我在 Windows 7 Ultimate x64 上使用 Eclipse Indigo 3.7.1(32 位)以及 Java JDK 6 update 27 32 位和 EGit 1.1.0

谢谢!

I've been using for a while a small git repository that has been set-up for me and I'm using EGit to commit and push my changes. (it's not github or anything like it, just a repository set in a common git server)

However, whenever I was using EGit it would always ask me for my username and password (and my username would already show up, as it was probably saved somewhere, probably in my URI for the push configuration). Then, today, I mistyped my password, and EGit gave me a "Auth Failed" error. That's obviously expected, but then, whenever I tried pushing again, EGit does not ask for my Username/Password again. It just goes straight to the "Auth Failed" error screen.

I tried making a few changes to my Push configuration, such as changing protocols (initially, no protocol was defined, then I tried ssh and https) and defining my username and password on that configuration screen, but nothing seems to work.

I also tried to regenerate my id_rsa keys (which I'm not really sure I was using them before, since EGit would always ask me for username/password) to no avail.

I followed lots of possible resolutions by searching similar problems here in StackOverflow but none of them worked for me.

Uninstalling and reinstalling EGit plug-in did not work. Completely deleting the Eclipse folder and reinstalling it from scratch didn't work either.

So, basically, what I want is for EGit to start asking for my username and password again.

Does anyone have any idea of what could be the cause for this behavior of not asking username/password, and how do I make that work again?

I'm using Eclipse Indigo 3.7.1 (32-bit) with Java JDK 6 update 27 32-bit and EGit 1.1.0 on Windows 7 Ultimate x64

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

影子是时光的心 2024-12-16 05:44:27

找到了如何解决这个问题。

结果 Eclipse 已将我输入错误的密码记录在其安全存储中。我所要做的就是修复它:

  • 转到“窗口”>“首选项菜单;
  • 在“首选项”窗口左上角的过滤框中输入“安全存储”;
  • 在左侧列表中选择“安全存储”;
  • 选择“内容”选项卡;
  • 展开【默认安全存储】节点;
  • 从此节点删除“GIT”条目。

Found out how to fix this.

Turns out Eclipse had recorded my mistyped password inside its Secure Storage. All I had to do was to fix it was:

  • Go to the Window > Preferences menu;
  • Type in "Secure Storage" in the filter box on the top left of the Preferences window;
  • Select "Secure Storage" in the list on the left;
  • Select the "Contents" tab;
  • Expand the [Default Secure Storage] node;
  • Delete the "GIT" entry from this node.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文