Brian Knoblauch
Brian Knoblauch

Reputation: 21399

Git doesn't like my password but github is fine with it?

We have a new corporate password complexity/length policy and ever since changing to that policy I can't use git to talk to GitHub Enterprise from the command line or from the IDEs that depend on the CLI version (such as Visual Studio and NetBeans). However, I can use GitHub Desktop to do my git tasks just fine.

The CLI and IDE always prompt me for my password, but then reject me with a standard "fatal: Authentication failed for..." message. Same password in GitHub Desktop works fine.

Our new passwords are 25 characters minimum, is there a limitation on how long of passwords that git CLI supports?

Upvotes: 1

Views: 190

Answers (1)

VonC
VonC

Reputation: 1328152

Is there a limitation on how long of passwords that git CLI supports?

No that I know of.

The CLI and IDE always prompt me for my password, but then reject me.

Check from the CLI:

  • if the remote is indeed an https one (git remote -v)
  • what is the credential helper: git config credential.helper: it could have cached the old credentials.

Check and see if 2 factor authentication is turned on. If so, create a personal access token. Use that in place of the password.

Upvotes: 1

Related Questions