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

SourceTree: Bitbucket GIT SSH connection refused for pulling and pushing

Taryn Mervis August 2, 2018

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

Taryn Mervis August 7, 2018

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.

Taryn Mervis August 22, 2018

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

Jeff Mihalsky
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!
March 30, 2022

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

 

Jeff

Martin Polar
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!
March 31, 2022

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.

Jeff Mihalsky
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!
March 31, 2022

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.

Martin Polar
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!
April 1, 2022

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
AUG Leaders

Atlassian Community Events