Does something like this exist for #ssh

If I connect to example1.domain.com:22 then it forwards to 10.0.2.10:22
If I connect to example2.domain.com:22 then it forwards to 10.0.2.11:22

I have a vm which runs docker I'd also like to host forgejo on it but that for ease of use I'd also like to use port 22 for git over ssh.

I guess I want a reverse proxy for port 22.

@mikebell add a host entry with the "other" name/ip in a per host ssh-config ?
It's not clear to me what you want to happen though. You want to run "ssh some.host" but have it actually ssh to some IP?

@falken even I'm struggling to explain it now. I've decided to run up another VM purely for forgejo that way my docker VM doesn't get in the way.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.