“Auth Failed” error with EGit and GitHub

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

    My answer may be outdated but hopefully it can be useful for someone.

    1. In your Eclipse go to Window > Preferences > General > Network Connections > SSH2 (or just type "SSH2" in preferences window filter box).

    2. In "Key Management" tab press "Generate RSA Key..." button. Optionally you can add comment (usually e-mail address) and passphrase to your key. Passphrase will be used during authentication on GitHub.

    3. Copy your generated public key (in a box just below "Generate RSA Key..." button) and add it to your GitHub account.
    4. Press "Save Private Key..." button to save your private RSA key into file. By default keys are stored in SSH2 home directory (see "General" tab).

    That's it! Now you should be able to push your code to GitHub repo.

提交回复
热议问题