I don't have DISPLAY set, but -Y works great.
Otherwise, what I have done is `xhost +machinename ; ssh user@machine`
then export DISPLAY=machine_name_or_ip
and all works well.
On Thursday 24 August 2006 07:23, Shawn Badger wrote:
> Also, check to make sure your localhost is set in /etc/hosts. I had a
> similar problem and found that the hosts file was missing the localhost
> entry thanks to Craig's help.
>
> On Thu, 2006-08-24 at 04:53 -0700, der.hans wrote:
> > Am 23. Aug, 2006 schwätzte Mark Phillips so:
> > > I cannot figure out what is wrong. Everything I have read on the net
> > > and in O'Rreilly's SSH book say I am doing it right, but it doesn't
> > > work!
> > >
> > > Machine - monkey
> > > Debian stable
> > > /etc/ssh/ssh_config has
> > > ForwardX11 yes
> > > ForwardX11Trusted no
> >
> > debian defaults to ForwardX11Trusted set to yes.
> >
> > > Machine - stingray
> > > Debian stable
> > > kde desktop is running
> > > /etc/ssh/ssh_config has
> > > ForwardX11 yes
> > > ForwardX11Trusted no
> > >
> > > I can ssh from monkey to stingray (and vice versa)
> > >
> > > When I try ssh -X stingray from monkey, I get Error: Can't open
> > > display.
> > >
> > > In debug mode, I see the following:
> > > debug1: Authentication succeeded (keyboard-interactive).
> > > debug1: channel 0: new [client-session]
> > > debug1: Entering interactive session.
> > > debug1: Requesting X11 forwarding with authentication spoofing.
> > > Linux stingray 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686
> > > GNU/Linux
> > >
> > > mark@stingray:~$ echo $DISPLAY
> >
> > stingray is the remote host in this situation, correct?
> >
> > What do you have for DISPLAY on the localhost?
> >
> > Let us see the following scenerio:
> >
> > local:$ echo $DISPLAY
> >
> > :0.0
> >
> > local:$ ssh -X remote
> > you@remote's password:
> > .
> > .
> > remote:$ echo $DISPLAY
> > localhost:10.0
> >
> > > mark@stingray:~$ xeyes
> > > Error: Can't open display:
> >
> > Yup, not having DISPLAY set will do that to you :).
> >
> > ciao,
> >
> > der.hans
> >
> > > mark@stingray:~$ exit
> > > debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
> > > logout
> > > debug1: channel 0: free: client-session, nchannels 1
> > > Connection to stingray closed.
> > > debug1: Transferred: stdin 0, stdout 0, stderr 32 bytes in 87.1 seconds
> > > debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.4
> > > debug1: Exit status 1
> > >
> > > FWIW, I can do "X -query stingray" from monkey and get the gdm login
> > > and my kde desktop from stingray to monkey.
> > >
> > > What am I doing wrong?
> > >
> > > Thanks!
> >
> > --
> > # https://www.LuftHans.com/ http://www.CiscoLearning.org/
> > # Join the League of Professional System Administrators!
> > https://LOPSA.org/ # Take a razor to your throat
> > # and a noose to your neck,
> > # then follow that up with a cup of poison.
> > # Not a good way to start the day. - der.hans
> > --------------------------------------------------- PLUG-discuss mailing
> > list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe,
> > or to change you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
~~~~~~~~~~~~~~~~~~
Nathan England
PaysonLinux User Group
nathan@paysonlinux.org
http://www.paysonlinux.org/
Software Development
Website Development
Linux Administration
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss