question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git: Support GitHub 2FA

See original GitHub issue
  • VSCode Version: 1.9.1
  • OS Version: Ubuntu 14.04, 16.04

Steps to Reproduce:

  1. Make changes to a GitHub repo with two-factor authentication enabled
  2. Push/Sync changes.

Error: Authentication failed on the git remote.

A dialog box appears to enter your git username/password, but there is no subsequent dialog for the two-factor authentication code, and so the process just fails.

The https protocol was used for the git clone on this repo.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:11
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

34reactions
skl131313commented, Feb 9, 2017

You can create a personal access token following the instructions here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/

Then you simply use that token as the password.

18reactions
nholthauscommented, Feb 9, 2017

Thanks, that’s a good workaround.

Still, it seems like from a UX perspective it would be nice to support at some point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Securing your account with two-factor authentication (2FA)
You can set up your account on GitHub.com to require an authentication code in addition to your password when you sign in. About...
Read more >
Configuring two-factor authentication - GitHub Docs
Configuring two-factor authentication using text messages · In the upper-right corner of any page, click your profile photo, then click Settings. · In...
Read more >
Accessing GitHub using two-factor authentication
With two-factor authentication enabled, you'll need to provide an authentication code when accessing GitHub through your browser. If you access GitHub using ...
Read more >
About two-factor authentication - GitHub Docs
Two-factor authentication (2FA) is an extra layer of security used when logging into websites or apps. With 2FA, you have to log in...
Read more >
Requiring two-factor authentication in your organization
Requiring two-factor authentication in your organization ... In the top right corner of GitHub.com, click your profile photo, then click Your organizations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found