Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git authentication with GitHub fails, remote: No anonymous write access

Tags:

git

github

I am unable to authenticate with GitHub using Git. The following error appears:

remote: remote: No anonymous write access.
fatal: Authentication failed for ...
like image 979
VolkanUstekidag Avatar asked Jan 25 '23 05:01

VolkanUstekidag


1 Answers

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.

like image 71
Alex Kimoto Avatar answered Jan 26 '23 20:01

Alex Kimoto