I have a number of ssh hosts (a dozen), for simplicity host1
, host2
, etc.
I frequently need to forward port, e.g.
ssh -L 8888:localhost:8888 host1
ssh -L 8889:localhost:8888 host2
ssh -L 8890:localhost:80 host2
This is annoying since 1) I need to remember mapping from local ports to hosts and 2) I need to do that manually
I'd like to implement some kind of system that listened to specific hosts (locally, on my machine), e.g. host1.8888.ssh.local
and opened tunnel to this address automatically.