Error: Couldn’t open display (null) and solution
Q. I am trying to run X applications using secure shell (SSH). I connect to my server using ssh myserver.com. But when I run X application it dump me back with an error as follows:
Error: couldn't open display (null).
How do I fix this problem?
A. You are trying to use ssh X11 X11 forwarding. To enable X11 forwarding you need to pass either the -Y or -X options to SSH command. For example try:
$ ssh –X user@myserver.com
OR
$ ssh –Y user@myserver.com
Once logged in you can run X application:
[you@myserver.com ] $ xeyes &
Where,
- -X: Enables X11 forwarding. X11 forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the user's X authorization database) can access the local X11 display through the forwarded connection. An attacker may then be able to perform activities such as keystroke monitoring. For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions by default.
- -Y : -X may be not secure then use –Y (recommended). Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
See also:
Ubuntu / Kubuntu Ubuntu Ver. 8.10 and Linux Training Library 2DVD+CD
E-mail
Print
Can't find an answer to your question? Contact us
Related Other Helpful FAQs:
- Warning, got duplicate tcp line - netstat error and solution
- Analog Input: Cannot display this video mode error and solution
- Apache Tomcat: Please increase maxThreads error and solution
- Warning: Remote Host Identification Has Changed error and solution
- Buffer I/O error on device fd0, logical block 0 error and simply soultion
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Today ~ 17 Comments
Today ~ 5 Comments
Today ~ 11 Comments
Yesterday ~ 24 Comments
Yesterday ~ 6 Comments