Hi, I have Git + Gitosis running on a jail. The jail has a private IP. I want to be able to access the jailed repository from outside (public IP), but I don't know how to do it. I cannot redirect all packets coming through port 22 to the jail (I need ssh in the host too).
I can access the repository internally (git clone git@192.168.1.2) but not from outside. I'm using HAProxy (on the host) to redirect domains to their respecive jails (running http servers), but didn't see any info about how to catch ssh through HAProxy.
Appreciate any help.
Thanks.
Code:
Internet -> (public ip : port 22) [Host Machine] -> (private ip : ssh) [Jailed Git + Gitosis]
I can access the repository internally (git clone git@192.168.1.2) but not from outside. I'm using HAProxy (on the host) to redirect domains to their respecive jails (running http servers), but didn't see any info about how to catch ssh through HAProxy.
Appreciate any help.
Thanks.