“Auth Failed” error with EGit and GitHub

后端 未结 23 2589
灰色年华
灰色年华 2020-11-28 01:26

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 b

23条回答
  •  野性不改
    2020-11-28 02:04

    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):

    > export GIT_SSH=/usr/bin/ssh
    > eclipse
    

    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:

    > cd ~
    > echo "export GIT_SSH=/usr/bin/ssh" >> .profile
    

    And then restart Eclipse to take effect.

    Sources:

    • [1] The solution is from this bug report
    • [2] Ubuntu Community Documentation for persistent environment variables:

提交回复
热议问题