SSH X11 Forwarding
This method is used to run X11 (GUI based) programs in remote machine, and output the display to the local machine. The purpose is almost similar to VNC and such, though they are technologically very different.
To use this feature, simply add the -X option when running ssh. The following example would also try to start the program xclock, and if all goes well the remote program should appear on your local machine;
user@local ~ $ ssh -X user@remote-machine user@remote ~ $ xclock
If it fails, set the these options in the remote machine’s /etc/ssh/sshd_config as the following and restart the service;
X11Forwarding yes
If it still doesn’t work, try to check your local machine’s /etc/ssh/ssh_config and set these option as the following;
ForwardX11 yes