I have the following situation:
A -----|------ B -----|------ Work
Work can SSH into B, and A can SSH into B, but apart from that everything is firewalled. What I would like to do is in effect create a SSH tunnel between Work and A so that I can VNC into Work from A.
From work I have created a remote SSH tunnel:
ssh -R 5900:localhost:5900 B
This means that I can VNC from B into work. But what do I need to do to extend this to A. I have tried to create a local SSH tunnel from A to B like this:
ssh -L 5901:localhost:5900 B
But it gives, bind: Cannot assign requested address
, as 5900 has already been assigned.
Does anyone have any ideas how to do this?