Running GUI applications over SSH

If you want to execute a GUI based application on the remote server through SSH, you can achieve it quite easily using the ssh command. Just type

ssh -X username@server

The -X flag is used to define the DISPLAY environmental variable on the remote host, so each X11 executed application will be forwarded to your machine.