Get GUI Inferface through SSH
I was workng on a project that may require a GUI, but I was coding on my local laptop and the service was on the remote server. It is easy to forward the information through CLI, but the GUI requires further manipulations.
On your remote machine (take Ubuntu as example), first edit ‘/etc/ssh/ssh_config’ and edit:
1
2
ForwardX11 yes
ForwardX11Trusted yes
Then when you connect to the remote machine via local terminal, you can simply add a flag -X to enable the X11 forwarding.
You may also add the above two commands to your local ssh config file to get rid of the -X .
Then you will need a local server to ‘receive’ the image process.
Here I used XQuartz on MacOS.
This post is licensed under CC BY 4.0 by the author.