I am unable to authenticate with GitHub using Git. The following error appears:
remote: remote: No anonymous write access.
fatal: Authentication failed for ...
I am unable to authenticate with GitHub using Git. The following error appears:
remote: remote: No anonymous write access.
fatal: Authentication failed for ...
I had the same issue, from within Visual Studio Code.
Git pushing directly from the terminal worked, but the exact same command from the terminal within Visual Studio Code failed because of missing remote anonymous write access.
As it turned out, this was a problem with Visual Studio Code 1.62.2 for Linux. Downgrading via sudo apt install code=1.62.1-1636111026 solved the issue for the moment. You can grab the right version number with sudo apt-cache policy code.
Operating System: Elementary OS 5.1.7 (Hera)
Kernel: Linux 5.4.0-90-generic
Architecture: x86-64
The new Visual Studio Code version 1.62.3-1637137107 resolved the issue for me.
I had the same problem since after the new Visual Studio Code update. I'm running Ubuntu 18.04.6 (Bionic Beaver).
git config --global credential.helper 'cache --timeout 3600'
Now, you'll have to enter your username and password (really an authentication token - check out the GitHub documentation here for more information) the first time you push anything in a session, but your credentials will be cached for the time you selected in step 3 above. I used 10600 (three hours).
I had the same issue while coding from an old repository on a new machine and trying to push. I gave my username and password, but I was unable to authenticate.
It looks like I did "git clone" via HTTPS for this repository (didn't remember). On my new machine, I did configure SSH, but not HTTPS. That's why I got this error.
I resolved it by generating a new token in GitHub:
I was having this same issue, and most of the topics that I read, was telling the reason was a new update, to Visual Studio Code 1.62.2, and could be fixed doing the downgrade.
But I also did a new token, and it worked fine!