Re: [gentoo-user] SSH: No X11 forwarding any longer

2007-10-19 Thread Alex Schuster
Mick writes:

 On Sunday 14 October 2007, Alex Schuster wrote:
  Then I looked at the configs again, and in the man page for ssh_config
  I finally found this:
   XAuthLocation
   Specifies the full pathname of the xauth(1) program.  The
   default is /usr/openwin/bin/xauth.
 
  /usr/openwin? I added XAuthLocation /usr/bin/xauth to the
  client's /etc/ssh/ssh_config, and now all was fine. Even without the X
  use flag.
 
  Looking at a gentoo box I did not update for a while, I see the man
  page there tells the default location is /usr/bin/xauth. Okay, now I
  know this change is responsible. But why aren't forum and this list
  flooded with people experiencing the same problem as me?

 Perhaps because most use vanilla ssh to manage servers?  I have every now
 and then used an ssh tunnel to forward VNC connections, but that is
 exceptional as far as my usage of ssh goes.

Well, my setup looks pretty vanilla to me, I did not talk about more 
sophisticated tunneling stuff. I just have a server and a client, and need 
to put the XAuthLocation line into the client's config when I want X 
forwarding.

I know found out what happened. The old boxes with working forwarding have 
a /usr/openwin symlink pointing to /usr/X11R6. This makes xauth being 
found. It belongs to x11-libs/xview, but the last xview update removed the 
symlink, now X forwarding fails.

Still no idea why you all do NOT have the problem.

Alex
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SSH: No X11 forwarding any longer

2007-10-14 Thread Alex Schuster
I wrote:

 Yes. Well, I usually have forwarding enabled automatically
 in /etc/ssh/ssh_config, but I always try with -X or -Y anyway.

  What is the actual error from the client?

 $DISPLAY is not set.

 But I notice a change since yesterday: I now get this warning:
 Warning: No xauth data; using fake authentication data for X11
 forwarding.

 Don't know what causes this, I emerged a couple of things due to world
 update and (still!) some problems with the expat update, but nothing
 which I would think has to do with ssh. Anyway, DISPLAY still does not
 get set.

I sort of found the solution to my problem, but still do not fully 
understand what happened. First I thought I had to add X to the server's 
use flags. Looked like I then had DISPLAY set, but still got the warning 
about missing xauth data. When trying to start an X application, I got 
this:

  Xlib: connection to localhost:10.0 refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
  xterm Xt error: Can't open display: localhost:10.0

Then I looked at the configs again, and in the man page for ssh_config I 
finally found this:
 XAuthLocation
 Specifies the full pathname of the xauth(1) program.  The
 default is /usr/openwin/bin/xauth.

/usr/openwin? I added XAuthLocation /usr/bin/xauth to the 
client's /etc/ssh/ssh_config, and now all was fine. Even without the X use 
flag.

Looking at a gentoo box I did not update for a while, I see the man page 
there tells the default location is /usr/bin/xauth. Okay, now I know this 
change is responsible. But why aren't forum and this list flooded with 
people experiencing the same problem as me?

Alex
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SSH: No X11 forwarding any longer

2007-10-14 Thread Mick
On Sunday 14 October 2007, Alex Schuster wrote:

 Then I looked at the configs again, and in the man page for ssh_config I
 finally found this:
  XAuthLocation
  Specifies the full pathname of the xauth(1) program.  The
  default is /usr/openwin/bin/xauth.

 /usr/openwin? I added XAuthLocation /usr/bin/xauth to the
 client's /etc/ssh/ssh_config, and now all was fine. Even without the X use
 flag.

 Looking at a gentoo box I did not update for a while, I see the man page
 there tells the default location is /usr/bin/xauth. Okay, now I know this
 change is responsible. But why aren't forum and this list flooded with
 people experiencing the same problem as me?

Perhaps because most use vanilla ssh to manage servers?  I have every now and 
then used an ssh tunnel to forward VNC connections, but that is exceptional 
as far as my usage of ssh goes.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] SSH: No X11 forwarding any longer

2007-09-27 Thread Iain Buchanan
On Thu, 2007-09-27 at 20:13 +0200, Alex Schuster wrote:
 Hi there!
 
 For a little while now I have a problem on one of my hosts, X11 forwarding 
 stopped working.

how are you ssh-ing in?  -X? -Y?  What is the actual error from the
client?

-- 
Iain Buchanan iaindb at netspace dot net dot au

BOFH Excuse #148:

Insert coin for new game

-- 
[EMAIL PROTECTED] mailing list