Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Could not read from remote repository

Algotech June 12, 2019

Hello I followed this exactly -> "Setting Up SSH in Windows"

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

All steps checked out and even got success via -> ssh -T git@bitbucket.org

so after: 

git remote add origin git@bitbucket.org:algotechllc/app_backend.git

 

I try: 

git push origin master

Returns: 

Unauthorized

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

 

2 answers

1 accepted

10 votes
Answer accepted
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2019

You've added the public key to the repository as an access key. You need to remove it from the repo and add it to your account.

Algotech June 13, 2019

Thank you for your response, that worked perfectly!

Algotech June 13, 2019

Fantastic! Thank you very much!

giovanni_nsele
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!
June 23, 2019

Thanks Jim, it was very helpful for me too. :)

seriiserii825 August 6, 2019

Thanks, you are so good. 

But i don't understand, why bitbucket give a option to add shh-key to repo?

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2019

It's for CI/CD systems - using those keys, they can pull updates without occupying a user license.

yairosv
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!
October 10, 2019

Thanks a lot, it worked for me

ken.w.colvin June 2, 2020
Manuel Malagon October 19, 2020

This worked.

So, what are the individual repository "Access Keys" for?

Ernesto Orellana
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!
July 23, 2021

Gracias funciona perfectamente, tuve el mismo problema cuando quise pushear.

llanero7
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!
October 13, 2021

I spent hours searching for an answer to this creating keys in different ways. Thanks for this contribution.

Go to https://bitbucket.org/account/settings/ssh-keys/ and add your key there.

Hvesiksasha
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!
January 24, 2022

Thanks! It works =)

0 votes
zorrosweb
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!
August 13, 2024

Yes. Your suggestion works smoothly. I have deleted the access key on my repo.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events