Logon failed, use ctrl+c to cancel basic credential prompt. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

Raj
Raj
648 Points
26 Posts

Trying to login in git bash but getting following error:

Logon failed, use ctrl+c to cancel basic credential prompt. remote: Support for password authentication was removed on August 13, 2021. 
Please use a personal access token instead.
Views: 9933
Total Answered: 1
Total Marked As Answer: 1
Posted On: 23-Mar-2022 21:02

Share:   fb twitter linkedin
Answers
Brian
Brian
2376 Points
13 Posts
         

From August 13, 2021, GitHub is no longer accepting account passwords when authenticating Git operations. Instead of password we need to add a PAT (Personal Access Token) and we can follow the below steps to add PAT.

 

Create Personal Access Token on GitHub

From your GitHub account, 

  1. go to Settings => 
  2. Developer Settings => 
  3. Personal Access Token => 
  4. Generate New Token (Give your password) => 
  5. Fill-up the form => click Generate token => Copy the generated Token

 

Now follow below steps based on your machine:

For Windows OS if password already saved

Go to Credential Manager from Control Panel =>

    1. Windows Credentials =>
    2. find git:https://github.com =>
    3. Edit =>
    4. On Password replace with with your GitHub Personal Access Token =>
    5. You are Done

 

For first time we need put PAT in the password field instead of plain text password.

Posted On: 24-Mar-2022 21:19
thanks. worked for me.
 - Smith  20-Apr-2022 23:54
very use full information. thanks.
 - sw  19-Apr-2023 04:52
 Log In to Chat