Remote X
Sunday, September 11, 2011 9:17:38 AM
How to access graphical user interfaces on a remote Linux machine
-----------------------------------------------------------------
Two computers involved:
- Windows notebook
- Linux server in datacenter
On the remote server in the datacenter I do NOT have X installed.
root@remote:~# grep X11 /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
root@remote:~# echo DISPLAY
(empty output)
Login as standard user, try echo $DISPLAY again. Will be empty. As per "X11DisplayOffset" above, do
user@remote:~$ export DISPLAY="localhost:10.0"
On the Windows machine with Cygwin installed, do
ssh -XC -v user@remote
Then run a X-based graphical program, for testing I found x-www-browser. It will show up on the local Windows machine.
-----------------------------------------------------------------
Two computers involved:
- Windows notebook
- Linux server in datacenter
On the remote server in the datacenter I do NOT have X installed.
root@remote:~# grep X11 /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
root@remote:~# echo DISPLAY
(empty output)
Login as standard user, try echo $DISPLAY again. Will be empty. As per "X11DisplayOffset" above, do
user@remote:~$ export DISPLAY="localhost:10.0"
On the Windows machine with Cygwin installed, do
ssh -XC -v user@remote
Then run a X-based graphical program, for testing I found x-www-browser. It will show up on the local Windows machine.

