“Auth Failed” error with EGit and GitHub

后端 未结 23 2598
灰色年华
灰色年华 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:19

    After spending hours looking for the solution to this problem, I finally struck gold by making the changes mentioned on an Eclipse Forum.

    Steps:

    Prerequisites: mysysgit is installed with default configuration.

    1.Create the file C:/Users/Username/.ssh/config (Replace "Username" with your Windows 7 user name. (e.g. C:/Users/John/.ssh/config)) and put this in it:

    Host github.com
    HostName github.com
    User git
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa
    

    2.Try setting up the remote repository now in Eclipse.

    Cheers. It should work perfectly.

提交回复
热议问题