RE: shh -X forwarding problem under breezy




Rainer Gutkas wrote:

> ssh -X 99.99.99.199 firefox
>
> one out of ten times I get:(firefox-bin:9981):
> Gtk-WARNING **: cannot open display:

Rainer, it should work..

The times that it does not work usually means a misconfig somewhere.
Or a very weird firewall..

Try the following. ssh into that platform, e.g.
# ssh -X 99.99.99.199

Now look at what the X Display is set to. ssh should set it - however,
ssh sets the environment before the .profile is executed and it in
turn can unset/overwrite the display environment variable.
# echo $DISPLAY

The $DISPLAY var should contain something like:
localhost:10.0

Which means ssh is listening on localhost (127.0.0.1) for X-client
display calls and tunneling that back to the ssh client's X-Server. If
the $DISPLAY reads something else (e.g. just :0.0), then the $DISPLAY
setting was either not set by ssh or was overwritten by something like
a .profile.

Oh yeah - weird firewall. Firewalls usually do not firewall localhost
traffic. They will allow all 127.0.0.1 traffic through (it is after
all, all just local stuff). But I will not be surprised seeing one
where a bright spark actually went and firewalled localhost, denying a
range of ports.

--
Billy

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: which port(s) does the X server listen on?
    ... > but remote X clients are unable to display to it. ... things just quietly fail to display. ... Most of the time one would ssh to the box they want to run the ... If everything is setup ...
    (Fedora)
  • Re: Attempting to run remote X app
    ... > I'm attempting to ssh into a central server and run an X app, ... Make sure the ssh server is forwarding X connections: ... DISPLAY environment variable is set), the connection to the X11 display ...
    (comp.os.linux.x)
  • X11 Forwarding with OpenSSH
    ... We are able to do the X11 forwarding and it works as the user ... go into the environment as their ssh IDs. ... functional accounts with no direct access into the account). ... another way to set your Display or gettaround this limitation? ...
    (SunManagers)
  • RE: X11 Forwarding
    ... X and ssh are completely separate items. ... On my HP-UX and RH systems, I always needed to set my $DISPLAY. ... installing XFree86 on Slackware 9.0 after initial OS installation (using ... Server is OpenSSH 3.5p1, OpenSSL 0.9.7a ...
    (SSH)
  • SSH Tunneling of X protocol from non-interactive session
    ... I need to forward X terminal through the firewall from non-interactive ... I would like to open tunnel ... C> ssh -L6001:localhost:6000 M ... xterm Xt error: Can't open display: C:1 ...
    (comp.os.linux.x)