ssh: X11 Forwarding

Written by Benjamin Cane on 2011-08-09 20:30:05

One of the coolest uses of ssh I've had to use recently is the X11 forwarding. In my case I had a java application that opened up a GUI but I had to run it from a server that did not have a running graphical user environment as it was in init state 3.

The answer is far simpler than one would initially think. With the ssh client you are able to connect to a server and enable X11 forwarding. For me this meant I could connect to my server in init(3) via my local machine enabling X11 and launch the GUI.

To try it out yourself simply run

$ ssh -X [email protected]

Once you login kick off a GUI tool like firefox.


Picture of Benjamin Cane

Benjamin is a Systems Architect working in the financial services industry focused on platforms that require Continuous Availability. He has been working with Linux and Unix for over 10 years now and has recently published his first book; Red Hat Enterprise Linux Troubleshooting Guide.

Publications

Identify, capture and resolve common issues faced by Red Hat Enterprise Linux administrators using best practices and advanced troubleshooting techniques

What people are saying:
Red Hat Enterprise Linux Troubleshooting Guide may just be all you need in your quest to wear the red hat. - Perry N.
Buy on Amazon

Sponsored by