People often forget that they can use SSH in order to access remote services which are only reachable from the network of the SSH server. Here is the snippet you want to use:
1 |
ssh -L [bind_address:]port:host:port user@server |
So as a general example:
You want to use the the local port 1000 and access a remote service on port 8080 running on another machine in the local network of the remote SSH host:
your localhost: 127.0.0.1
local IP of target host in remote network: 192.168.1.2
SSH-Server address: 88.88.50.50
1 |
ssh -L 127.0.0.1:1000:192.168.1.2:8080 root@88.88.50.50 |