Inability to use Personal Token, as password authenticator in command terminal


Ive been trying to setup my first Github repository, and therefore ive been trying to connect my account locally, to the cloud. However any time im trying to push/pull or anything that requires authentication i get stuck.

The problem is that, even though ive setup a Personal Access Token, whenever i insert it as my “password” in the terminal, it comes back with an error and this message.

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 ‘

Its also really hard to know if the token has been inserted correctly, since the terminal doesn’t show your password when copying in.

Does anybody know how to fix this problem, since i cant use many of the commands without the access. I appreciate the help.

To check the.Validity of a token value you have you could simply perform an authenticated REST api call with it such as Get the authenticated user

Regarding your Git not working with PAT.

Use recent version of of Git client
Clear any cached credentials from local Credential Manager
Remove any hard coded credentials defined in you gitconfig files

You can also use Web authentication flow or SSH from Git git client