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: Bitbucket GIT SSH connection refused for pulling and pushing


Hi Team,

We are currently experiencing a problem that started yesterday sometime, where we are unable to push or pull any of our bitbucket git repositories via SSH in sourcetree we keep receiving the following error:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
FATAL ERROR: Network error: Connection refused
fatal: Could not read from remote repository.

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

 We have only ever connected via SSH and have never experienced a problem until yesterday. If we change over to HTTPs we are able to pull the repositories without any issues. Further this issue is not consistent there are times when everything works and we are able to push and pull as expected and other times where we receive the error constantly. We have found that if we restart sourcetree or putty agent we are able to push and pull however after sometime we start receiving the above error again. Please can you assist in helping see why we are getting this issue all of a sudden. 


Kind regards,


1 answer

0 votes
Mike Corsaro Atlassian Team Aug 03, 2018

Hello! I'll need a bit more information:

  • OS
  • Version of Sourcetree
  • Version of Git

In the meantime, try removing your SSH key from Bitbucket, and try adding a new one. Make sure your SSH key is loaded into Putty.

Hi Mike,

Sorry for the late reply as requested please see the below information:


  • OS: Windows 10 Pro2.
  • SourceTree Version: 2.6.93.
  • Git Version:

However this issue is affecting all our developers and we are on a mix of Windows 8.1 and Windows 10.

I also tried you suggestion of adding as new SSH Key however I am still experiencing the above mentioned issue.

Hi Mike,

Please note we have since resolved this issue. It was discovered that the issue was due to an IP randomly being blocked by our firewall at various times. 

Kind regard,


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...

7,065 views 5 13
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