Can't authenticate to BitBucket through proxy

shadowzen1978
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 13, 2018

I  am having an issue authenticating to Bitbucket server through a proxy.  I've experienced this with the cloud version of Bitbucket and also a self-hosted server that I set up for testing.  In both cases, I can access Bitbucket through a standard web browser, also through the proxy.  The proxy replaces the SSL cert with an intermediate SSL cert that I can make an exception for in the browser, no problem.

However, if I drop the the command line and try to run git commands. I get:

fatal: Authentication failed for '[repo uri]'

I've enabled GIT_CURL_VERBOSE and can see from the headers that the Authorization header has the right Basic credentials on the last part of the request when I decode the base64 string so I'm not sure what's going on.

I use cntlm to provide the proxy credentials and in my git.config, the proxy entry is set to this service.
I also have sslCAInfo pointing to a file with the proxy's CA cert and I have
    sslVerify = false, both for http and https.

This solution works fine with github but will not work with BitBucket.  I get no such issues accessing bitbucket repos without the proxy, of course.

For what it's worth, I also get errors with SourceTree but I prefer using CLI for more visibility into what's going on.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events