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

Re: x-forwarding with ssh



Try the -v flag to ssh to see what it's trying to do:

ssh -v -X remote.host

this will let you watch the steps ssh is going through to try to debug the
connection.

If the remote host is configured correctly to allow X forwarding, you will
not have to set DISPLAY. Setting DISPLAY to local:0.0 will make the ssh
connection useless, since your X packets will not be tunnelled through it.

ap

----------------------------------------------------------------------
Andrew J Perrin - andrew_perrin@unc.edu - http://www.unc.edu/~aperrin
 Assistant Professor of Sociology, U of North Carolina, Chapel Hill
      269 Hamilton Hall, CB#3210, Chapel Hill, NC 27599-3210 USA


On Fri, 1 Mar 2002, steve downes wrote:

> Tried everything in this thread (& more besides)but the closest I get
> is:-
> 
> steve@fileserver:~$ xterm &
> [1] 19419
> steve@fileserver:~$ _X11TransSocketINETConnect: Can't connect: errno = 101
> xterm Xt error: Can't open display: fileserver:10.0
> 
> 
> 
> I have opened X11 in ssh_config & sshd_config in both fileserver & desktop
> I have tried -X in the ssh command & not.
> I have opened xhost & closed it
> 
> 
> 
> The annoying thing is in Potato it worked fine it is only since the
> upgrade to ssh2. (upgraded both ends to ssh2 as well)
> 
> Any more ideas?
> 
> Steve
> 
> 
> On Fri, Mar 01, 2002 at 04:08:42PM +1000, john wrote:
> > Nick Wright wrote:
> > 
> > > Hi there.
> > >
> > > Currently when I try to run X apps via an ssh login I get the error message
> > >
> > >   xterm Xt error: Can't open display:
> > >
> > > Is this a problem with ssh and my x-forwarding?
> > > if so, how do you change the x-forwarding options in ssh?
> > > if not, what is the problem and how do I fix it? :)
> > >
> > > thanks,
> > > Nick.
> > >
> > > --
> > > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > 
> > Have you installed xbase-clients?
> > 
> > Check /etc/ssh/ssh_config and /etc/ssh/sshd_config for
> > 
> >     ForwardX11 yes
> > 
> > and
> > 
> >     X11Forwarding yes
> > 
> > respectively.
> > 
> > John P Foster.
> > 
> > 
> > -- 
> > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 



Reply to: