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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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,


Has anyone seen this working from home? I see many posts similar with very little resolution.



I am having a similar issue.  I am working from home.  Other developers are able to push and pull successfully.  I am able to pull (but not push). I am beginning to wonder if our firewall is blocking my IP address.

I did not have issues until a month ago and feel like things don't work as well with changing to SSH. I have not seen anything related to personal firewalls, just corporate network firewalls. I also don't see anything helpful from Atlassian on this either.

Turns out there was a change made with our corporate firewall that was the culprit.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events