I have a home server running ubuntu 10.04 that is running two services:
- an SSH service
- a dockerized gogs service
I would like to essentially reverse-proxy incoming SSH connections based on the subdomain. For instance, I'd like for ssh connections made via
ssh firstname.lastname@example.org to be forwarded to port
2222 and those made via
ssh email@example.com to be forwarded to port
In essence, I'd like something analogous to nginx for SSH traffic. How can this be achieved?