Re: Warning: No xauth data; using fake authentication data for X11 forwarding.
Re: Warning: No xauth data; using fake authentication data for X11 forwarding.
- Subject: Re: Warning: No xauth data; using fake authentication data for X11 forwarding.
- From: Ben Byer <email@hidden>
- Date: Wed, 14 Nov 2007 16:42:40 -0800
On Nov 14, 2007, at 7:58 AM, J K wrote:
On Nov 11, 2007 8:28 PM, Ben Byer <email@hidden> wrote:
Okay, try these SSH troubleshooting steps. This list shows the
expected behavior of the system.
[4] local $ ssh -Y remote
Warning: No xauth data; using fake authentication data for X11
forwarding.
[5] remote $ echo $DISPLAY
localhost:10.0
[6]remote $ grep X11 /etc/ssh/sshd_config ~/.ssh/*
X11Forwarding yes
X11DisplayOffset 10
Notes:
The warning message in step 4 is harmless.
If step 5 does not output anything, then step 6 will say
"X11Forwarding no". In this case, you must fix the configuration on
the remote side.
If step 6 outputs anything other than "localhost:xx.0", then your
remote configuration is overriding the DISPLAY variable set by sshd
on
the remote side.
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer
I get the following upon grep'ing for DISPLAY on the remote host
(running Leo) in [3]:
/sw/etc/alternatives/xdvi.1:.SB DISPLAY.
/sw/etc/alternatives/xdvi.1:.SB DISPLAY
/sw/etc/profile.d/xfontpath.csh:if ( -x "/sw/bin/xfontpath" && $?
DISPLAY ) then
/sw/etc/profile.d/xfontpath.csh: if ( "x$DISPLAY" == x:0.0 ||
"x$DISPLAY" == x:0 ) then
/sw/etc/profile.d/xfontpath.sh: case $DISPLAY in
/etc/sudoers:Defaults env_keep += "DISPLAY XAUTHORIZATION
XAUTHORITY"
I think that last line in the sudoers file is something new; I might
have inadvertently done that at some point in trying to troubleshoot
this?
Locally, [1] runs just fine with the expected output, but after doing
[4], which is what I did in Tiger successfully, [5] now returns an
empty line.
I should mention that [6] was properly set for all of this, though I
recently changed the /etc/ssh_config to read:
ForwardX11Trusted yes
which was not present as an option in the default ssh_config file but
looks to be an option in the man page. (Could this account for my
sudoers file?) Easy enough to change back.
At this point, I'm more or less at a loss -- it'd be interesting to
see if starting an xterm on your Mac, manually setting DISPLAY=:0 in
that xterm, and then trying to ssh from that xterm to your remote
machine produced the same effect. (Also, experiment with ssh -X
instead of -Y). Other than that ... :(
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden