I am trying to access my work computer (server C) via vnc. I have root on this machine. I can't access it directly so I have to go via server B. I have done the following steps.
First on my local machine I run
ssh -L 5900:serverC:5900 user@serverB
and then on serverC I ran
x11vnc -safer -localhost -nopw -once -display :0
However when I then do
on my local machine it says it can't connect.
Both my local machine and serverC are running ubuntu. serverB is running CentOS and I don't have root on it.
What am I doing wrong?
If nothing, what's a good way to diagnose the problem? Is there some way to tell if serverB has port forwarding disabled? Is there a way to do port forwarding in user space?