Run Linux GUI Apps through SSH

For Linux server distributions without GUI...

As a Linux server and Windows user, I often need to run Linux GUI apps but do not wanna install a GUI on the server. So I use SSH to run GUI apps on the server and display them on my Windows machine.

Install X11 Server on Windows

Download and install VcXsrv from https://sourceforge.net/projects/vcxsrv/.

Run the XLauncher and keep the default settings.

Install X11 Client on Linux

1
sudo apt-get install xorg openbox

Enable X11 forwarding on the server

Edit /etc/ssh/sshd_config and modify the following line:

1
X11Forwarding yes

Restart SSH service

1
sudo service ssh restart

Connect to the server

1
ssh -X user@server-ip-address

Run GUI apps

Run xeyes to test:

1
xeyes
Built with Hugo
Theme Stack designed by Jimmy