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

Cannot access Bitbucker Server via SSH

Hi all,

I'm self-hosting Bitbucket Server and several other Atlassian tools on an Ubuntu VM. I'm using Apache as a reverse proxy as outlined in Atlassian documentation. Everything's running fine except for Bitbucket's SSH. I've enabled SSH in the settings and configured a repository with an access key. I've opened port 7999 in my Azure firewall.

I understand Bitbucket runs a separate Apache process on port 7999 for SSH. This is confirmed by checking with netstat. My Apache reverse proxy is not configured to handle 7999 in any way.

When attempting to connect to Bitbucket with

ssh git@bitbucket.organisation.com:7999

the operation times out. Similarly, trying to clone the repo I have configured with an SSH access key with

git fetch ssh://git@bitbucket.organisation.com:7999/project/project.git

fails with

ssh: connect to host bitbucket.organisation.com port 7999: Connection timed out

Any tips?

1 answer

1 accepted

0 votes
Answer accepted

In writing this out I suddenly realised that the server setup has the built in firewall ufw enabled. 

$ sudo ufw allow 7999

solved my problem. I'm kicking myself but hopefully this post will help someone else out one day.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,080 views 4 22
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