Github: fatal: Authentication failed Support for password was removed on August 13, 2021

% git push       
Password for '': 
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see
for information on currently recommended modes of authentication.
fatal: Authentication failed for ''

If you were trying to push a branch up to origin GitHub and you received, the above error when you were asked to authenticate with a password, then it's most likely that your Personal access tokens has expired.

  1. Login to your GitHub profile,
  2. Go to Settings -> Developers Settings,
  3. Now checkout Personal access tokens and see if your token has expired,
  4. If yes create a new one.
  5. And start using it instead: Set new Token using command line.
GitHub expired Personal access tokens

As the page states: ✏️ Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.

Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.