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

ssh cloning error Edited

Matt Nov 01, 2017

When I try to clone a repo using SSH from my Bitbucket Server I get the following error: 

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote ssh://


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

Please note, when I clone via HTTP it works just fine.  Any ideas or suggestions?

1 answer

0 votes
Caterina Curti Atlassian Team Nov 02, 2017

Hi Matt,


Can you confirm that you have access to the repository and the Bitbucket Server instance? 

I see that you are able to clone via HTTP, are there any record of the request in the access logs when performing the request via ssh?

Are any other commands via ssh available? Is the 7999 port reachable from the workstation (http calls are on port 7990 by default)?

Could you try to remove and add back the access key or create a new one?




Matt Nov 04, 2017

checking port 7999 with telnet I can't reach the site. should I be able to?

I do have port 7990 redirecting to port 80, but it's possible that the network team is just redirecting ALL ports to 80.



Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,067 views 1 20
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