Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2011 07:27:15 -0700
From:      perryh@pluto.rain.com
To:        frank@shute.org.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ssh -X (X11 forwarding) not working from 6.1 to 8.1
Message-ID:  <4e1c59c3.T5kMrjV/l%2BlA16KI%perryh@pluto.rain.com>
In-Reply-To: <20110712062255.GA45128@orange.esperance-linux.co.uk>
References:  <4e1c1f5f.LsZHLb8pZocKlPVV%perryh@pluto.rain.com> <20110712062255.GA45128@orange.esperance-linux.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Frank Shute <frank@shute.org.uk> wrote:

> On Tue, Jul 12, 2011 at 03:18:07AM -0700, perryh@pluto.rain.com wrote:
> >
> > DISPLAY is not getting set in a remote shell started by "ssh -X".
...
> Have you tried putting:
>
> DISPLAY=:0.0
>
> in ~/.ssh/environment on the machine that's not setting DISPLAY
> properly?

Wouldn't that cause the remote app -- which is running on the
ssh server -- to (try to) use that machine's own local display?
A port-forwarded connection normally has something along the
lines of

  DISPLAY=localhost:10.0

(but it can't be hard-coded, because the "10" part will vary
depending on what-all port-forwarded connections exist).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4e1c59c3.T5kMrjV/l%2BlA16KI%perryh>