Re: problems with running remote X programs
On Fri, 2002-06-14 at 11:11, Ron Johnson wrote:
> On Fri, 2002-06-14 at 10:32, David Z Maze wrote:
> > Matthew Yee-King <yeeking@no-future.com> writes:
[snip]
> > Eew eew eew. Don't do that. Debian disables unencrypted X network
> > sessions. But since you're using ssh to log in from one machine to
> > the other (right?) this is easy: just add -X to the ssh command-line
> > arguments to get X forwarding over ssh, and the DISPLAY environment
> > variable will be automagically set to the right thing on the remote
> > machine.
>
> Ok... From an xterm window on my local box, I do
> $ssh -X <username>@<remotehost>
>
> Then from the command prompt on the remote box, I type
> $mtr -g www.cox.net
> and instantly get the error
> Gtk-WARNING **: cannot open display:
>
> Explicitly setting $DISPLAY on the remote host causes the
> same error, but it just takes a few seconds of cogitation, first.
>
> Any ideas? Colin Watson says to remove '-nolisten tcp' from
> the script that starts the local X. I'm going to try that now.
Progress!! After removing '-nolisten tcp' from /etc/X11/xinit/xserverrc
this is the error:
<on the remote host>
$ mtr -g www.cox.net
Xlib: connection to "<mylocalhost>:0.0" refused by server
Xlib: Client is not authorized to connect to Server
Gtk-WARNING **: cannot open display: <mylocalhost>:0
$ xhost rebel
Xlib: connection to "<mylocalhost>:0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display "<mylocalhost>:0"
In <remotehost>:/etc/ssh/sshd_config, there is the directive
X11Forwarding no
Is this overriding my use of "ssh -X"?
--
+---------------------------------------------------------+
| Ron Johnson, Jr. Home: ron.l.johnson@cox.net |
| Jefferson, LA USA http://ronandheather.dhs.org:81 |
| |
| "I have created a government of whirled peas..." |
| Maharishi Mahesh Yogi, 12-May-2002, |
! CNN, Larry King Live |
+---------------------------------------------------------+
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: