RE: X and Ssh yet again.

From: Stephanie Schiebert (
Date: 02/07/03

  • Next message: Tim Tominna: "PC based SSH question"
    From: "Stephanie Schiebert" <>
    To: "Jorge Aldana" <>, <>
    Date: Fri, 7 Feb 2003 12:19:44 -0500

    Hi Jorge,

    Try compiling with these options:

    # make distclean
    $ ./configure --without-x11-security
    $ make
    # make install

    Chances are, the X11 Security support added to v 3.2.2 is what is causing your problem.



    Stephanie Schiebert
    Sr. Engineer, Technical Services
    SSH Secure Shell
    GIAC Certified
    Unix Security Administrator
    SSH Communications Security Inc.

    -----Original Message-----
    From: Jorge Aldana []
    Sent: Thursday, February 06, 2003 10:53 PM
    Subject: X and Ssh yet again.

    Ok, I've tried several posted solutions but still get

    Error: Can't open display:

    when trying to launch an X app remotely.

    This is only true under version v3.2.2 (from, under v3.0.1 it works
    fine. I usually compile ssh using all the defaults, which lead me to recompile
    using --with-x (well configure with) and the problem still persists. I even set
    AllowX11Forwarding to yes in sshd2_config and ssh2_config (under /etc/ssh2 and
    restarted the daemon), although none of this was ever needed under v3.0.1. I
    then rummaged through the listings on this list and used several posted
    solutions like:

    ssh -R 6009:localhost:6000


    ssh +X

    and then even tried setting DISPLAY manually and still get the dreaded "Error:
    Can't open display:", not that I wanted to.

    I'm using several different OS's and they behave the same, or I get the same
    behavior with the same version of ssh. Has something changed that has slipped by

    Using v3.0.1 the DISPLAY variable is automatically set as it should but under
    v3.2.2 there isn't even a DISPLAY variable listed.

    Anyone know of any possible hangups here?


    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 ...
    • 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 ...
    • 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? ...
    • Re: DECwindows over PuTTY
      ... I am using PuTTY to SSH to the emulated system. ... I am using Xming on Windows 7 as my display. ...
    • Re: Remote X over rsh
      ... all I'm doing is running X and ssh. ... the weak machine is the one where on he wishes to display, ... Possibly the "my client" confused the issue; ... just use X without ssh forwarding. ...