Tunnel X over SSH
The drawback of Remote Desktop Login I posted 2 days ago is its slow speed. It takes a while to display the desktop login screen. Another drawback is it creates another X session at the server if you already have another running.
My laziness and desire to start up applications and finish the job quickly makes me look further into the world of remote access. This leads me to X tunneling over SSH.
With X tunneling over SSH, I am able to run X applications (Linux FC5) on my preferred Mac OS X desktop, Pluto. The screenshot shows that I am running KDE Control Center (Linux FC5 on triton1) on Pluto (Mac OS X).
This is how I do it:
- ForwardX11 needs to be enable. Edit /etc/ssh/ssh_config. Make sure you have ForwardX11Trusted yes is enabled in ssh_config.
- On Mac OS X, start X11. At terminal, type
$ ssh -X username@ip_address - Start any X applications you like.
Comments
8 Responses to “Tunnel X over SSH”
Leave a Reply



Listen to my podcast
Hi Adrian,
Thanks for the excellent tips.
[...] have been tunneling X from Linux to Tiger for almost two years without any problems and happy with it. After upgrading to [...]
Although I can open individual applications via ssh, but I am not able to get the complete desktop of my solaris server. Any tips on that.
Try http://adrianhoe.com/adrianhoe/2006/10/12/remote-desktop-login-from-mac/
I hope this helps. Please let me know.
Thanks again Adrian.
I am able to SSH into the SGI in my lab. Wonderful!
Jon C.
Hello Adrian,
I tried using Xnest to get solaris desktop. Well it took me some time to figure out that leopard does not have Xnest bundled with it. So I got it and tried.. but now I am getting following error. Do you thikk you can help me on this?
Couldn’t open RGB_DB ‘/usr/X11R6/lib/X11/rgb’
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Couldn’t get keyboard.
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Leopard has a very different or I shall say a revamped X11. Some X11 applications, e.g. GIMP, no longer works on Leopard.
If you are using Gnome, then you can follow the instruction here:
http://adrianhoe.com/adrianhoe/2008/04/04/tunnel-x-from-gutsy-to-leopard/
I hope this helps.
Hi Adrian,
Thanks for the tips.