Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to - github two factor authentication with eclipse

I have to use the two factor authentication feature of github. That is fine. I am unable to comprehend how to use that with Eclipse. Whenever I commit my code or perform any activity, the only prompt I get from eclipse is to enter repository, userid and password. I have egit also installed but that does not help. Issue arrives in both Mac and Windows OS Does anyone out there know how to do this?

Thanks for your help in advance.

like image 357
9 PENCE Avatar asked Sep 11 '15 15:09

9 PENCE


People also ask

How do I push two-factor authentication to GitHub?

If you have added a security key to your account, you'll first be prompted to insert and use a security key. To skip using a security key, click Authenticate with GitHub Mobile. GitHub will send you a push notification to verify your sign in attempt.

Can you connect GitHub to Eclipse?

Loading an existing project from github to Eclipse: 1. For your partner to download the project, they need to click Window → Show View → Other → Git → Git repositories. Then select “Clone a git repository and add it to this view”.

Does GitHub have two-factor authentication?

You can set up your account on GitHub.com to require an authentication code in addition to your password when you sign in.


2 Answers

Although I'm by no means an expert on this, it sounds like you should be using a Personal Access Token

like image 135
David G Avatar answered Sep 19 '22 08:09

David G


What worked for me in Windows:

  1. Create Personal Access Token to authenticate to GitHub. Copy this token for step 3.
  2. In Eclipse open Window → Preferences → Team → Git → Configuration → Tab Repository Settings:

    • Select your repository and change the url for remote as follows: https://github.com/yourUserName/yourRepository (without the ending .git)
  3. Push your changes to github as usual. If you are asked to enter your github credentials enter your username and as password your above generated Personal Access Token.

like image 40
The Woops Avatar answered Sep 21 '22 08:09

The Woops