Reputation: 243
I followed the steps from Egit user guide, but I get an error message with auth fail.
What I do:
I have copied the public key from Window > Preferences > Network Connections > SSH2 > Key Management
to GitHub under account settings
Then I do
Team > Push
...
I enter the [email protected]:....
uri and click next. But then I get the error:
**Cannot get remote repository refs
Reason: [email protected]:.... : Auth fail**
What could be the problem?
Thanks
Upvotes: 9
Views: 43237
Reputation: 2766
Old question, but for future reference:
Make sure you did setup a push remote. It worked for me when I got both the Cannot get remote repository refs-problems ("... Passphrase for..." and "Auth fail" in the "Push..." dialog).
Provided that you already:
Setup your SSH keys with Github (Window > Preferences > General > Network Connections > SSH2)
Setup your local repository (you can follow this guide for that)
Created a Github repository (same guide)
... here's how you do it:
Upvotes: 9
Reputation: 137
DO not forget to add .git to the repository name in the URI : field
for example if ur username is Decoderx and git repository name is foo URI :https://github.com/Decoderx/foo.git
and not "https://github.com/Decoderx/foo" this solved this problem for me.
Upvotes: 2
Reputation: 28151
Check my solution from this related question: "Auth Failed" error with EGit and GitHub
Briefly: set GIT_SSH environment variable with a path to the system ssh executable before launching Eclipse. Far from nice but works.
For Ubuntu:
> export GIT_SSH=/usr/bin/ssh
> eclipse
Upvotes: 4
Reputation: 51
I finally fixed this on my platform (mainly was a key issue but also critical not to have a leading slash before the repo path in the dialog pictured above). You can see more details in my post here, if you like:
Good luck!
Melissa
Upvotes: 2
Reputation: 1323293
You can try and follow this tutorial, using the git+ssh protocol:
git+ssh://[email protected]/path_to/repo.git.github
Just [email protected]
alone wouldn't work.
Upvotes: 0