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. Below is a sample SSH command.
ssh -X user@remote-machine
To execute a program on the remote machine and output the display locally, just type the program name at the terminal and you sould get the forwarded display on your desktop.
If it fails, set the these options in the remote machine’s
/etc/ssh/sshd_config as the following and then restart the SSH service;
If it still doesn’t work, try to check your local machine’s
/etc/ssh/ssh_config and set these option as the following;
If you get permission error, run the following command at you terminal;
Share your thoughts, suggest corrections or just say Hi. Login not required.