Enable X11 Forwarding
There are a few changes needed on the virtual machine to enable X11 forwarding. In this tutorial we use Ubuntu 18.04 or above. Other Linux distributions will have a very similar SSH daemon configuration. The SSH daemon configuration file is located at
- Open the SSH daemon configuration file.
$ sudo vi /etc/ssh/sshd_config
- Locate and uncomment or change line
X11Forwarding yes. This line allows the graphical application to be forwarded over to your computer.
- Restart SSH daemon.
$ service sshd restart
- Install a graphical application
$ apt -y install xeyes $ xeyes