[Bug 1004] X11 forwarding not working with ssh3.9p1 (Error: Can't open display)

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Mar 30 00:10:40 EST 2005


http://bugzilla.mindrot.org/show_bug.cgi?id=1004





------- Additional Comments From dtucker at zip.com.au  2005-03-30 00:10 -------
(In reply to comment #0)
> Initially, there was no DISPALY variable defined. So, I did

If the client requests X11 forwarding ("ssh -X yourserver") but $DISPLAY is not
defined after login, this usually means one of the following:

 - X forwarding is not enabled in the server's sshd_config.
 - xauth is not installed on either client or server.
 - xauth wasn't available (or not in the path) at build time and ssh or sshd
doesn't know where to find it.  (You can specify this with the XAuthLocation
option.)

> # xhost 64.xx.xx.xx
> # export DISPLAY=64.xx.xx.xx:10.0

sshd should set these automatically for you.  In general, if you need to fiddle
with these yourself then there's something wrong.

Also see:
http://www.openssh.com/faq.html#3.12
http://www.openssh.com/faq.html#3.13

If none of those work, please attach (ie use "create attachment", don't paste
into the text field) the output of "ssh -X -vvv yourserver".



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list