I would like to use the standard http / ssh ports on Stash, but from what I've been able to read in the docs, a port above 1024 is required for ssh. It looks like I could use port 80/443 for http/https, but I don't see an option for using port 22 for ssh.
In order for Stash to run bind to port 80/443 for HTTP and 22 for SSH, it would have to run as the root user. This is highly discouraged and in the case of SSH hosting not supported at all for this very reason.
You can still access Stash on these ports by using port forwarding.
For SSH you can find details at https://confluence.atlassian.com/display/STASH/Setting+up+SSH+port+forwarding
For HTTP we have details on how to set up a Apache proxy at https://confluence.atlassian.com/display/STASH/Integrating+Stash+with+Apache+HTTP+Server
As Alexey mentioned, you can use HAProxy to forward port 22. See Stash's SSH documentation for more details:
A question regarding the port forwarding solution...
The machine that runs my Stash installation also runs other services e.g. Jira and some others.
I administer the machine by ssh-ing to it with Putty through port 22.
If I implement the forwarding of port 22 to 7999, won't I lose the possibility to access the machine via Putty??
Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...
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!
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