“身份验证失败"EGit 和 GitHub 错误 [英] "Auth Failed" error with EGit and GitHub

查看:38
本文介绍了“身份验证失败"EGit 和 GitHub 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Eclipse Helios 上安装了 EGit 插件,我正在尝试将它与我的 GitHub 帐户一起使用,但是当我尝试配置它时,我收到了身份验证失败"错误.

I've installed EGit plugin at Eclipse Helios and I'm trying to use it with my GitHub account, but when I try to configure it I get an "Auth Failed" error.

我一直在谷歌上搜索,但没有运气……我的密码似乎有问题,但 AFAIK EGit 正在寻找正确的位置 (/home/user/.ssh/id_rsa) 并且我通过 sshgit 控制台客户端连接没有问题.

I'd been googling it but no luck... it seems to be a problem with my passphrase but AFAIK EGit is looking at the right place (/home/user/.ssh/id_rsa) and I've no problem in connect by ssh or git console client.

一些博客说这是 URI 和 Egit 解析器的问题,但我仍然没有找到解决方案.

Some blogs says that is a problem with the URI and the Egit's parser but I still haven't found a solution.

推荐答案

我的回答可能已经过时,但希望对某人有用.

My answer may be outdated but hopefully it can be useful for someone.

  1. 在你的 Eclipse 中转到 Window >首选项 > 常规 > 网络连接 >SSH2(或者在首选项窗口过滤框).

  1. In your Eclipse go to Window > Preferences > General > Network Connections > SSH2 (or just type "SSH2" in preferences window filter box).

密钥管理"标签中按生成 RSA 密钥..." 按钮.您可以选择添加评论(通常是电子邮件地址)和密钥的密码.密码将在身份验证期间使用在 GitHub 上.

In "Key Management" tab press "Generate RSA Key..." button. Optionally you can add comment (usually e-mail address) and passphrase to your key. Passphrase will be used during authentication on GitHub.

就是这样!现在您应该能够将您的代码推送到 GitHub 存储库.

That's it! Now you should be able to push your code to GitHub repo.

这篇关于“身份验证失败"EGit 和 GitHub 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆