“Auth Failed” error with EGit and GitHub

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

    IF YOU HAVE PEM FILE: In Eclipse go to Window > Preferences > Network Connections > SSH2, and then add path to your PEM file to "Private keys" and that should solve the problem.

    0 讨论(0)
  • 2020-11-28 02:10

    For *nix users who are using SSH:

    Make sure the username for your account on your local machine does not differ from the username for the account on the server. Apparently, eGit does not seem to be able to handle this. For example, if your username on your local machine is 'john', and the account you are using on the server is named 'git', egit simply fails to connect (for me anyways). The only work around I have found is to make sure you have identical usernames in both the local machine and the server.

    0 讨论(0)
  • 2020-11-28 02:10

    I updated the plugin with the nightly builds: http://www.eclipse.org/egit/download/

    With an update, it worked for me. (Eclipse Helios, Mac OS X)

    0 讨论(0)
  • 2020-11-28 02:11

    I solved same problem with adding my key to ssh;

    ssh-add ~/.ssh/id_rsa 
    

    then entered the passphrase and need restart.

    0 讨论(0)
  • 2020-11-28 02:11

    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

    0 讨论(0)
  • 2020-11-28 02:14

    I resolved it by selecting http as the protocol and giving my GitHub username and password.

    0 讨论(0)
提交回复
热议问题