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.
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.
Some blogs says that is a problem with the URI and the Egit's parser but I still haven't found a solution.
I resolved it by selecting
http
as the protocol and giving my GitHub username and password.I was having the same issue which it seems was down to config issue. The github mac osx app had created a ssh private key called github_rsa
In your Eclipse go to
Window > Preferences > Network Connections > SSH2
In the general tab you should see SSH2 home
/Users/<you username>/.ssh
you'll probably see id_dsa,id_rsa defined as private keys.Click 'Add private key' and select github_rsa located
/Users/<you username>/.ssh
I could use console to push/pull the repositories, but no in eclipse. In my case, eclipse seems can't read my SSH private key, my key started with:
And I noticed my colleague's key started with:
I think currently eclipse can't take this new kind of key (OPENSSH PRIVATE KEY).
I solved it by: Regenerate your ssh key by using command:
This will use the old way to generate the key: so it will starts with the headers:
see more information on:
https://github.com/duplicati/duplicati/issues/3360
Then you can load the key again in eclilpse by using Preferences -> Network connections -> SSH2, click "Add Private Key" (still select your private key, even you already see the name in the list of private keys, because eclipse has to reload it)
You need to install msysgit, after installing you need to open Git Bash and enter there these commands:
Now your generated keys are in
C:\Users\username\.ssh
(in Windows 7).Next you load the content of your public key to your project on Github
In Eclipse open
Window->Preferences->General->Network->SSH2
and set your~/.ssh
as SSH HomeAfter that go to
Key Management tab
and Load existing Key - set here your private key in~/.ssh
.After that you can push your project to Github (but I set ssh protocol, not git+ssh).
I had exactly same problem but I found the cure from a Eclipse bug report!
An environment variable named GIT_SSH must be set with a path to a ssh executable [1].
For example on Ubuntu Linux (10.10 64bit):
After that pushes to GitHub repository work like they should. I tested this with Eclipse Galileo and Indigo.
The problem is really annoying and the solution is far from nice. For now, making the solution permanent for, at least Ubuntu users, one must make the env variable permanent. It can be done by adding the export command to ~/.profile or ~/.bashrc [2]. For example:
And then restart Eclipse to take effect.
Sources:
My answer may be outdated but hopefully it can be useful for someone.
In your Eclipse go to Window > Preferences > General > Network Connections > SSH2 (or just type "SSH2" in preferences window filter box).
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.
That's it! Now you should be able to push your code to GitHub repo.