FreeKB - 0 Resolve "Error: Can't open display" in Linux
Resolve "Error: Can't open display" in Linux

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


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 520e4 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |