Here's my scenario, I have two machines, A and B. A is behind a VPN, so B can't get to A. I have a web server:
machine_a$ curl localhost:8088
"hello from machine_a"
I have executed a remote SSH tunnel as follows:
machine_a$ ssh -R 8088:machine_a:8088 machine_b -N &
On machine B, I can verify that the tunnel is indeed open:
machine_b$ curl localhost:8088
"hello from machine_a"
How do I get machine_b to listen to HTTP traffic on 8089 and route/pipe/whatever into that locally available port 8088, which in turn is a remote port over to the HTTP server on machine_a?
(Also, I have setup a dummy server on machine_b:8089 and made sure that it is open.