I have tried using both HAProxy (nothing useful seems to happen) and Xinetd (complains about ports already being bound to ssh and bitbucket) to setup SSH proxy, but neither seems to be working... I have Nginx setup as a webserver and all domains go through https proxy. I have different Atlassian tools associated with different sudomains and are all working as expected. I can only clone over ssh if I open the firewall port for Bitbucket ssh. I'm trying to maintain normal ssh access to the server, ssh clone without opening firewall ports other than normal ssh, and I want to remove the port number from the clone url. I'm ultimately shooting for a clone command like:
git clone ssh://git@sub.domain.tld/<project>/<repo>.git
Information seems to be light online, or I am getting partial information, or I am off down the completely wrong path. I am definitely not an expert in utilizing/configuring ssh in nonstandard ways. Does anyone have any tips or pointers about what may be going wrong, or have a similar setup that is working?