On Mon, 29 Jan 2007 09:58:56 +1100
Peter Hardy <[EMAIL PROTECTED]> wrote:

> Alan L Tyree wrote:
> > It fails with all programs.
> > 
> > The problem is that the DISPLAY variable is not getting set. After
> > logging into both machines with ssh -X machine_name
> > 
> > -----------------------------
> > [EMAIL PROTECTED]:~$ echo $DISPLAY
> > localhost:10.0              ** Ubuntu machine where everything
> > works -----------------------------
> > [EMAIL PROTECTED]:~$ echo $DISPLAY
> >                     ** Xubuntu machine where nothing works
> > [EMAIL PROTECTED]:~$
> > ------------------------------
> > 
> > The /etc/ssh/sshd_config files are the same in both machines.
> > 
> > I don't know how DISPLAY gets set
> 
> If you add -vv to your ssh flags, you'll see something like:
> 
> debug2: x11_get_proto: /usr/X11R6/bin/xauth -f 
> /tmp/ssh-2fcsElfWeT/xauthfile generate 127.0.0.1:0.0
> MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/null
> debug2: x11_get_proto: /usr/X11R6/bin/xauth -f 
> /tmp/ssh-2fcsElfWeT/xauthfile list 127.0.0.1:0.0 2>/dev/null
> debug1: Requesting X11 forwarding with authentication spoofing.
> debug2: channel 0: request x11-req confirm 0
> 
> after the connection is authenticated.
> 
> Every time I've had a problem like this, it was because xauth wasn't 
> installed on the server.
> 

debug2: x11_get_proto: /usr/bin/X11/xauth  list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 0
debug1: Sending environment.
debug1: Sending env LANG = en_AU.UTF-8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
Linux misty 2.6.17-10-powerpc #2 Tue Dec 5 22:00:09 UTC 2006 ppc

[EMAIL PROTECTED]:~$ echo $DISPLAY

[EMAIL PROTECTED]:~$
[EMAIL PROTECTED]:~$ type xauth
xauth is /usr/bin/xauth


Sigh! I don't **need** to ssh -X into this machine, so maybe I'll stop
wasting time on it. Very frustrating.

Alan

> -- 
> Pete
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 


-- 
Alan L Tyree                    http://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670            Mobile: +61 427 486 206
Fax: +61 2 4782 7092            FWD: 615662
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to