1

I had a repository that I have been updating for a few months with perfect ease from within Eclipse & Netbeans. Then one day, it asked me for my password again. I kept putting in my password, but it still didn't work. I went into my github account, pressed the security and revoked all of the current logins. There was one that I didn't approve of. It was from Miami. In the security history, I saw a login from this IP: 199.111.189.110. I changed my password and tried on Netbeans, but it didn't work. Please help.

UPDATE: I am using 2-factor auth and an https url

Here is my repo.

Sheikh
  • 539
  • 1
  • 7
  • 29
  • 1
    Did you use an https or ssh url for your remote repo 'origin' in your local repo? Did you activated 2FA? (https://help.github.com/articles/about-two-factor-authentication/) – VonC Jan 25 '15 at 00:55
  • @VonC I have 2FA & an https url – Sheikh Jan 25 '15 at 01:42
  • Then you must use a token access, which might have been compromised or revoked (the regular GitHub password account doesn't work with 2fa) – VonC Jan 25 '15 at 01:45
  • @VonC How do I use token access? – Sheikh Jan 25 '15 at 12:48

1 Answers1

3

If 2FA is activated, then, as I described in "Configure Git clients, like GitHub for Windows, to not ask for authentication", one need to use a Personal Access Token (PAT), listed in the Applications section of one's GitHub Account.

A token can be used as a password when 2FA is set, while the regular GitHub account password wouldn't work.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250