← All fixes
remote: Support for password authentication was removed (git push to GitHub)
#107Error
remote: Support for password authentication was removed on August 13, 2021. fatal: Authentication failed for 'https://github.com/user/repo.git/'
Why it happens, and why this works
GitHub no longer accepts your account password for git over HTTPS. It wants a personal access token, an SSH key, or a credential helper that logs in through the browser.
Fix
Easiest: install the GitHub CLI and run gh auth login (choose HTTPS, then 'authenticate Git with your GitHub credentials'); git push works afterwards. Or create a fine-grained personal access token on GitHub and paste it where git asks for a password. Or switch the remote to SSH (git remote set-url origin [email]:user/repo.git) after adding an SSH key.
Did it work?
No reports yet0 worked0 didn't
Tried it yourself?
Related fixes
fatal: The current branch main has no upstream branch
#105fatal: The current branch main has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin main
Postgres: password authentication failed for user "postgres"
#157error: password authentication failed for user "postgres"
fatal: not a git repository (or any of the parent directories): .git
#80fatal: not a git repository (or any of the parent directories): .git
gitVerifiedNo reports yet