
Access control
On the X Display server, use the xhost + command to allow any client to connect to the X Display server.
[root@server1 ~]# xhost +
access control disabled, clients can connect from any host
On the X Display server, use the xhost - command to deny any client to connect to the X Display server.
[root@server1 ~]# xhost -
access control enabled, clients cannot connect from any host
You can also append specific computer hostnames or IP address to only allow or deny certain computers to be able to connect to the X Display server.
[root@server1 ~]# xhost + example.com
Ensure the OpenSSH server is configured to be able to display a graphical interface.
Ensure the /etc/ssh/sshd_config file on the OpenSSH server is configured to allow X11 sessions.
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
Assuming the client is a Windows machine, install Xming on Windows:
- Download Xming from http://sourceforge.net/projects/xming/files/latest/download
- Install Xming.
- Ensure Xming is active and running on Windows.
Configure PuTTY to use X11 forwarding:
- In the left panel of PuTTY, expand Connection > SSH, and select X11.
- Tick Enable X11 forwarding.
- Connect to the OpenSSH server.
Once connected, you will still have a non graphical display. However, you can start x programs. For example, the xclock command can be used to display the clock. The graphical clock will be displayed.
[root@server1 ~]# xclock
Did you find this article helpful?
If so, consider buying me a coffee over at