On machine B, I remote access machine C
$ ssh -X t@C $ echo $DISPLAY localhost:10.0
How can I find/verify the mapping of
$DISPLAY on C to
$DISPLAY on B? Can it be done by the following command on C?
$ netstat -a | grep 6010 tcp 0 0 localhost:6010 0.0.0.0:* LISTEN tcp6 0 0 ip6-localhost:6010 [::]:* LISTEN
Why is the connection between
$DISPLAY on C and
$DISPLAY on B LISTEN not ESTABLISHED, given that the X forwarding channel has been created?
When I run a X client on C, how can I verify that it is connected to the X server on B (the local machine)? Why do I get more information about port 6010 in the following than before running the X client?
$ eog &  1129 $ netstat -a | grep 6010 tcp 0 0 localhost:6010 0.0.0.0:* LISTEN tcp 0 0 localhost:59782 localhost:6010 TIME_WAIT tcp 0 0 localhost:59780 localhost:6010 ESTABLISHED tcp 0 0 localhost:59778 localhost:6010 TIME_WAIT tcp 0 0 localhost:6010 localhost:59780 ESTABLISHED tcp6 0 0 ip6-localhost:6010 [::]:* LISTEN