Redirecting SSH Port from TCP/7999 to TCP/22

Aloah!

 

We're using Bitbucket and need to remap from TCP/7999 to TCP/22. We're using Bitbucket in a Docker setup (https://bitbucket.org/atlassian/docker-atlassian-bitbucket-server/src)

 

I've found a documentation paper that describes how to do this for native installations:

https://confluence.atlassian.com/bitbucketserver/setting-up-ssh-port-forwarding-776640364.html

 

Since this instructions describe a very work intensive way in how to do this with a proxy I'm wondering if remapping to port TCP/22 using docker configuration - mapping "-p 22:7999" or is there anything which might be problematic for production environments.

 

Cheers,

Matthias

edit 2016-10-24_1500 Changing the port would possibly work, but does not update the port on all links provided by bitbucket. Bitbucket itself allows only ports above 1024.....

1 answer

0 vote

Hi Matthias,

The documentation presents an option. However, the idea that you explained wouldn't be a problem. Any other port redirection that you're able to set up will do.

Just observe that the SSH daemon runs on servers by default on port 22 so you will need to do some extra configuration as indicated on the doc you linked (i.e. "configure multiple network interfaces on the physical machine and force the default ssh daemon to listen on all but the interface for accessing Bitbucket Server")

Best,

Thiago

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

28,259 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