public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re: X11 Forwarding with SSH: $DISPLAY is empty!!
       [not found] <Pine.GSO.4.44.0212031151380.4156-100000@yuma.Princeton.EDU>
@ 2002-12-03 16:59 ` Denis Shcherbakov
  2002-12-03 17:07   ` Toby Dickenson
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Shcherbakov @ 2002-12-03 16:59 UTC (permalink / raw
  To: gentoo-dev



Hello,

I need to activate X forwarding while connecting to a remote machine via
SSH.  So, I edited the config files for ssh on this remote machine, such
as /etc/ssh/ssh_config and /etc/ssh/sshd_config, to set ForwardX11 to
yes, etc....  However, after fooling around with all these config files, I
still cannot get this remote machine to forward X, and I _think_ I know
why.  It turns out that $DISPLAY is empty (unset) on that machine.  From
what I read on other forums, $DISPLAY needs to be set on the remote
machine to enable any kind of X forwarding.

What do I do here?  After doing "ssh -X remote.host" $DISPLAY is still
unset.  If can set $DISPLAY manually, then when any app is trying to
start, it says it can't open display... blah blah blah...

I have put a similar message on gentoo-user, but none of the obvious
things have resolved this.  I think it has to do with setting $DISPLAY
rather than ssh itself - I think my config file should in principle work.
Where during Gentoo initialization is $DISPLAY set??

Thanks,
Denis



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Re: X11 Forwarding with SSH: $DISPLAY is empty!!
  2002-12-03 16:59 ` [gentoo-dev] Re: X11 Forwarding with SSH: $DISPLAY is empty!! Denis Shcherbakov
@ 2002-12-03 17:07   ` Toby Dickenson
  2002-12-03 17:39     ` Denis Shcherbakov
  0 siblings, 1 reply; 3+ messages in thread
From: Toby Dickenson @ 2002-12-03 17:07 UTC (permalink / raw
  To: Denis Shcherbakov, gentoo-dev

On Tuesday 03 December 2002 4:59 pm, Denis Shcherbakov wrote:
> Hello,
>
> I need to activate X forwarding while connecting to a remote machine via
> SSH.  So, I edited the config files for ssh on this remote machine, such
> as /etc/ssh/ssh_config and /etc/ssh/sshd_config, to set ForwardX11 to
> yes, etc....  However, after fooling around with all these config files, I
> still cannot get this remote machine to forward X, and I _think_ I know
> why.  It turns out that $DISPLAY is empty (unset) on that machine. 

Is DISPLAY set on the machine you are connecting from? If no, thats your 
problem. If yes, try "ssh -v" for more clues.



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Re: X11 Forwarding with SSH: $DISPLAY is empty!!
  2002-12-03 17:07   ` Toby Dickenson
@ 2002-12-03 17:39     ` Denis Shcherbakov
  0 siblings, 0 replies; 3+ messages in thread
From: Denis Shcherbakov @ 2002-12-03 17:39 UTC (permalink / raw
  To: gentoo-dev


Ok, figured it out!!  Sorry about this, people.

It turns out that "UseLogin=yes" is not compatible with X11 Forwarding!!
As soon as I set UseLogin=no in /etc/ssh/sshd_config, it works like a
charm!

Best,
Denis


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-03 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.GSO.4.44.0212031151380.4156-100000@yuma.Princeton.EDU>
2002-12-03 16:59 ` [gentoo-dev] Re: X11 Forwarding with SSH: $DISPLAY is empty!! Denis Shcherbakov
2002-12-03 17:07   ` Toby Dickenson
2002-12-03 17:39     ` Denis Shcherbakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox