ssh cloning error Edited

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://git@bitbucket.xxxxx.com:7999/dt/xxxxxxxx.git

Output:

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 vote

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?

 

Cheers,

Caterina

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.

 

thanks,.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

30,921 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you