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 doTeam > 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
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:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With