GitHub password/token not working

Hi, I know other people have had the same issue before, but I can’t find where anyone has provided a solution to it.

I’m using a personal access token in the command line to connect with an existing repository, but for some reason it doesn’t accept it.

Any ideas?

This is what I get:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

remote: Please see Token authentication requirements for Git operations | The GitHub Blog for more information.

fatal: Authentication failed for…

Is it expired or older than 60 days?

1 Like

No, it’s not expired or older than 60 days. I generated a new one and even deleted it again and the other old ones and generated another new one.

I figured out what the problem is. I’ve got the GitHub password saved in my keychain and it automatically uses it apparently, even though copying and pasting the personal access token in the command line.

I deleted the password in the keychain and suddenly, it works.


Good! :partying_face:
That was going to be my next question—if you had it saved in the keychain.

1 Like

thank you! this was driving me mad.

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.