http://www.faqs.org/docs/Linux-mini/Remote-X-Apps.html
rob@oak:~> ssh 10.5.5.8
Password:
Last login: Wed Nov 28 10:32:28 2007 from console
Have a lot of fun...
rob@fir:~> env | egrep 'HOST|SSH'
HOSTNAME=fir
HOST=fir
SSH_CLIENT=10.5.5.1 59762 22
SSH_TTY=/dev/pts/7
HOSTTYPE=i386
SSH_SENDS_LOCALE=yes
SSH_CONNECTION=10.5.5.1 59762 10.5.5.8 22
rob@fir:~> export DISPLAY=`echo $SSH_CLIENT | sed -e 's/.*=//' -e 's/ .*$//'`:0
rob@fir:~> echo $DISPLAY
10.5.5.1:0
rob@fir:~> xterm
xterm Xt error: Can't open display: 10.5.5.1:0
Not surprising as I didn't authorise anything. And actually :
oak:/var/log # netstat -tlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:sunrpc *:* LISTEN 3123/portmap
tcp 0 0 localhost:ipp *:* LISTEN 3140/cupsd
tcp 0 0 localhost:smtp *:* LISTEN 3187/master
tcp 0 0 *:ssh *:* LISTEN 3311/sshd
tcp 0 0 localhost:ipp *:* LISTEN 3140/cupsd
tcp 0 0 localhost:smtp *:* LISTEN 3187/master
Shows my X server isn't actually listening on a network port, secure or what? So have to enable remote connections to Xorg, to get it to work; I'm sure there'll be docs somewhere