Resolve "Error: Can't open display" in Linux

Home > Search
  by

This error appears when attempting to launch an X application from a remote client machine.

[root@server1 ~]# xclock
Error: Can't open display:

 

SSH is probably being used to connect from the client machine to the X server. If this is true, use the -Y option when connecting to the SSH server. The -Y option enables trusted X11 forwarding. When connecting using the -Y option, if you are able to open x application on the client, this means there is some trust issue with X11 forwarding.

[root@server1 ~]# ssh -Y user1@example.com

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments