My git was working fine, then without changing anything than the following problem started to happen, I have tried resetting the cache in
credentials.helper
and have gone through pretty much every stackoverflow answer I could find
remote: Password authentication is not available for Git operations. remote: You must use a personal access token or SSH key. remote: See https://github.ibm.com/settings/tokens or 'https://github.ibm.com/WBurney/Blockchain_SDO.git/': The requested URL returned error: 403
Thanks
How to fix remote: Support for password authentication was removed? Since we cannot use account passwords when authenticating git operations, we can fix this issue by generating the PAT(Personal Access Token) in GitHub and using the PAT as authentication for Git operations.
Github has removed the support for Password Authentication from August 13, 2021. The password authentication support has been eliminated because it is easy for people to crack the passwords. A personal access token can reduce the damage. Now GitHub will not allow if you try to use git by username and password.
If you have registered a public ssh key to your GitHub enterprise account, you could side-step the issue using an ssh url
cd /path/to/repo git remote set-url origin [email protected]:WBurney/Blockchain_SDO.git
Then any command like git push
/git fetch
/git pull
/git ls-remote
would use the SSH URL set by git remote set-url
.
But regarding your original issue, try and follow "Creating a personal access token for the command line".
If you are on Mac, update your credentials from the OSX Keychain.
You might need to remove an old cached credential first.
(As commented by RayLoveless)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With