Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

fatal: could not read Password for 'https://myusername@bitbucket.org': Permission denied

Eduardo Alvarez
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!
November 9, 2018

Hi there,

 

When I try to git push I get:

fatal: could not read Password for 'https://myusername@bitbucket.org': Permission denied

 

I already did the SSH key setup as per:

https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

 

At the end of the procedure I tested the setup with:

ssh -T myusername@bitbucket.org

 

And it responds:

logged in as myusername.

You can use git or hg to connect to Bitbucket. Shell access is disabled.

 

Howerver, as soon as I try a git push I get the afore mentioned error.

 

Please help, thanks.

2 answers

0 votes
BillyP
Community Champion
November 15, 2018

Hi @Eduardo Alvarez , 

Can you post your ssh troubleshooting steps?

ssh -i ~/path/to/identity_file user@bitbucket.org

 I just ran this to confirm a working system from my system with my account.  

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2018

Hi Eduardo, are you using the right protocol? Looks like you're using HTTPS instead of SSH, if you're using SSH it should look something like

git@bitbucket.org:<repo_owner>/<reponame>.git

or

ssh://git@bitbucket.org/<repo_owner>/<reponame>.git

If after using the right one you're still having issues, I advise you have a look at Troubleshooting SSH issues.

Let us know how it goes!

Kind regards,

Ana

Eduardo Alvarez
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!
November 13, 2018

Hi Anna,

 

I've tried the two options you mention, to no avail. At this point I am not sure if the error message comes from the remote Bitbucket server or if it comes from the local Linux OS. Is there a way to know?

I have registered my public key on my BitBucket project, but still no luck.

Thanks,

-Eduardo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events