Search code examples
gitsslproxyinterception

git push behind proxy with ssl interception


My git client is behind a company proxy. That proxy makes ssl interception.

I managed to suppress the SSL Certificate Problems with git config --global http.sslcainfo PATH-TO-PROXY-CA-CERT

Now I can clone repositories from github/bitbucket/gitlab/... over https (ssh is blocked)

But whenever I have to authenticate (e.g. for private repos or to push something) I get the message fatal: Authentication failed for ... sometimes also

remote: Anonymous access to ... denied.
fatal: Authentication failed for '...'

Why do I get these errors and what can I do to make it work?


Solution

  • Solution: In this case the company proxy removed the credentials for security reasons.