Friday, November 13, 2009

X Windows over ssh

Before we can get started you must enable your local X Server to recieve from the network.


To do this in Linux in edit /etc/X11/gdm/gdm.conf
Change:

#DisallowTCP=true
DisallowTCP=false


You will need to reboot your Linux box or restart the X-server which is more then I care to try to explain here. 

ssh -R 6001:127.0.0.1:6000 sokol@remote.host.name

sokol@192.168.1.116's password: xxxxx
Last login: Fri Apr 1 12:04:48 2005 from 192.168.1.108


[sokol@localhost ~]$ xterm -display 127.0.0.1:1


-- THEN an Xterm will pop-up on your local machine.


If you install cygwin on your windows PC this will also work using the X server in cygwin, or my favorate is using Hummingbird Exceed ( I have an ancient copy I use) on windows but over the ssh on Cygwin


Works great. I can run synaptic remotely and almost all X-apps that don't do high end graphics like games or video.

No comments: