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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree Forbbiden, but ssh -Tv -l >>username<< works

I have multiple Bitbucket accounts. One is a personal account, which is working perfectly. The other is a work account where I have a personal profile as well as a team profile which owns the repo in question.


As of last night I am unable to get Sourcetree to authenticate with the work repo. I was getting the Atlascode VSCode extension up and running when everyone broke.


My personal account has an ssh key pair configured which works from the terminal (ssh -Tv as well as pushing, pulling & fetching via Sourcetree.

My work account has an ssh keypair configured on the personal work account. That account has admin rights to the team account and the repo. I am able to run ssh -Tv -l >>work_username<< from terminal successfully, but any action performed through Sourcetree yields the error
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists."


I have also ensured ~/.ssh/config has the correct host settings. I have been trying to fix this for hours now and I am simply out of ideas.

1 answer

1 accepted

0 votes
Answer accepted

Of course after posting this I figure it out... Despite not requiring this configuration in the past (with exactly the same setup as I have now) I essentially started over again and setup my ssh keys manually in terminal by following this guide 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,733 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you