Unable to push into public repository in Bitbucket cloud Edited

Hello Everyone,

I am a regular bitucket server user and recently an external vendor had setup a repository on bitbucket cloud. 

I am having issues ever since.


Using Linux machines with http_proxy,https_proxy variables set.


1) I am able to clone a public repository, but unable to push anything to it.

When pushing I get password prompt and then the error.

Password for 'https://myid@bitbucket.org':  

I entered the password ( I made sure I am entering the correct password)
remote: Unauthorized
fatal: Authentication failed for 'https://myid@bitbucket.org/myid/testpublicrepo.git/'

2) When I try to clone a private repository, I am getting same error

remote: Unauthorized
fatal: Authentication failed for 'https://myid@bitbucket.org/myid/testrepopvt.git/'

Things I have tried:

1)  I tried  curl -L bitbucket.org and responses are coming. 

2) I have entered bitbucket.org in /etc/hosts file.

3) I tried repeating these steps on a repository in bitbucket server and it works like a charm. Here also password is prompted during clone and push operation, but works fine when i enter the password.

git config --global user.name "Username"
git config --global user.email "My Email Id"

git clone http://user@bitucketserver:7990/scm/jen/test.git
cd existing-project
git init
git add --all

git commit -m "Initial Commit"
git remote add origin http://user@bitucketserver:7990/scm/jen/test.git
git push -u origin master



1 answer

1 accepted

0 votes
Eric Henry Atlassian Team Sep 19, 2017

Hello Vishnu,
Please create a support ticket for this.


Eric Henry
Development Team Lead, Bitbucket Cloud

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

630 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot