Uncategorised

X11 Forwarding for no-UI Ubuntu

Local computer is Windows 10, get MobaXterm

Server is Ubuntu 18.04 without UI.

The MobaXterm alread done everything you need. Don’t need to do anything.

Server side:

Modify ssh configuration file:

root@Ubuntu # vim /etc/ssh/sshd_config

Find following setting and change as below:

AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no

Restart SSH server

root@Ubuntu # service ssh restart

Install xauth

root@ubuntu # apt install xauth

If the GUI program has Chinese included, please install fonts.

root@Ubuntu # apt install ttf-wqy-zenhei

after setting. Use MobaXterm connect SSH and use 
"xclock "
to verify.