ssh -Y and ssh -X not working

Discussion in 'Linux Networking' started by Anthony Campbell, Jan 5, 2006.

  1. I have a network consisting of a desktop and laptop linked by wireless.
    I communicate between them with ssh. With the Y or X switches I can run
    X applications on the laptop from the desktop but not the other way
    round. If I try to run X applications on the desktop when on the laptop
    nothing happens at all - no error message.

    I have exactly the same entries for X in /etc/ssh/sshd_config on both and
    also for /etc/X11/Xsession.options.

    ==========================
    X11Forwarding yes
    X11DisplayOffset 10
    PrintMotd no
    PrintLastLog yes
    KeepAlive yes
    ========================


    # /etc/X11/Xsession.options
    #
    # configuration options for /etc/X11/Xsession
    # See Xsession.options(5) for an explanation of the available options.
    allow-failsafe
    allow-user-resources
    allow-user-xsession
    use-ssh-agent
    use-session-dbus


    Any suggestions for what else to check?

    Anthony
     
    Anthony Campbell, Jan 5, 2006
    #1
    1. Advertisements

  2. Anthony,

    You might see what "DISPLAY" is set to. I've seen cases where it is set
    to 0:0 or :0. I think the default for ssh is 10:0.

    Also, I'd start with simple apps like xclock or xman. Gnome and KDE
    apps can fail for a variety of reasons even if X works properly.


    Scott R. Haven
    Sr. Systems Engineer
    Paisley Systems Inc.
    managed services, consulting, and support
    www.paisleysystems.com
     
    Scott R. Haven, Jan 5, 2006
    #2
    1. Advertisements

  3. That was it! Thanks, brilliant. DISPLAY wasn't set at all on the laptop
    but was 0:0 on the desktop. I'm actually not sure what it's supposed to
    do but I've unset it on both and now it's working fine in both
    directions.

    Anthony
     
    Anthony Campbell, Jan 5, 2006
    #3
  4. Anthony,

    You're welcome. I'm glad to know I'm not the only one still using X
    over a network. :)

    Scott R. Haven
    Sr. Systems Engineer
    Paisley Systems Inc.
    managed services, consulting, and support
    www.paisleysystems.com
     
    Scott R. Haven, Jan 11, 2006
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.