
Note: IP is the local workstation’s IP where you want the GUI If you still get the “cannot open display” error, set the DISPLAY You can open any GUI application which will open it without any issue. $ ssh -XĮnable trusted X11 forwarding, by using the -Y option, $ ssh -YĪfter opening ssh connection to the remote host as explained above,

While doing ssh use the option -X to enable X11 forwarding.

$ xhost +Īccess control disabled, clients can connect from any host You can allow clients to connect from any host.

From xhost+ : How to Fix “Cannot Open Display” Error While Launching GUI on Remote Server:Īnswer: You can fix the “cannot open display” error by following the xhost procedure mentioned in this article.Īllow clients to connect from any host using xhost+Įxecute the following command to disable the access control, by which
