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
4,367,436
Community Members
 
Community Events
168
Community Groups

SourceTree: Bitbucket GIT SSH connection refused for pulling and pushing

Edited

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,

Taryn

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: 2.18.0.windows.1

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,

Taryn

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

 

Jeff

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
TAGS

Atlassian Community Events