Stephen Gran on 30 Nov 2008 11:47:24 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] X Forwarding Problem


On Sun, Nov 30, 2008 at 02:03:20PM -0500, Casey Bralla said:
> I'm trying to run remote X applications, something I have done lots of times 
> in the distant past.  I discovered that ssh has added a few more security 
> features, which I think I have delt with.  Here is an example of the error 
> I'm getting:
> 
> debug1: Requesting X11 forwarding with authentication spoofing.
> Last login: Sun Nov 30 13:52:36 EST 2008 from localhost on pts/20
> Last login: Sun Nov 30 13:55:58 2008 from LocalComputer.nerdworld.org
> RemoteComputer ~ # xclock
> Error: Can't open display:
> 
> So ssh appears to be setting up port forwarding properly.  I have added the 
> line "xhost +" to my .xinitrc to allow foreign screens to be used.  I don't 
> see anything obvious in the logs
> 
> Anybody have any ideas where to look for a solution?

Run with -vvv, you should see something like:
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 1

Then echo $DISPLAY.  If you don't have DISPLAY set, check that X11
forwarding is enabled in sshd_config, and check that xauth and so on
(package xbase-clients in Debian etch) is installed.
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | T-shirt Of The Day:  I'm the person     |
|  steve@lobefin.net             | your mother warned you about.           |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug