Enable X Session over SSH

Sometimes there is a need to use the graphical X session on Linux machines but you cannot do so, since you don’t have access to the machine, you can just SSH it. But you can forward your X session over SSH. To do this use the -X option. If you are using putty then you can set the option like this. Go to:

Connection -> SSH -> X11 -> “Enable X11 forwarding”

This will enable X session over SSH on putty.

Enjoy the GUI 😉