Announcement

Collapse
No announcement yet.

ssh + X , strange problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ssh + X , strange problem

    Hi all,

    I have Kubuntu 6.06, and a big question.
    What I'm trying to do is ssh to a remote pc (connected in the LAN) to open a graphic application on the remote pc, for example kmail. Then I get the error:

    kded: cannot connect to X server alab174:0.0
    DCOP aborting call from 'anonymous-10258' to 'kded'
    kded: ERROR: Communication problem with kded, it probably crashed.
    kdeinit: Can't connect to the X Server.
    kdeinit: Might not terminate at end of session.
    kmail: cannot connect to X server alab174:0.0
    DCOP aborting call from 'anonymous-10249' to 'kmail'

    My pc is alab174, and as it should be, on the remote I have:
    #env |grep DISP
    DISPLAY=alab174:0.0

    Before running ssh I do:
    # xhost +

    The remote pc has the last version of Suse Linux, and it never gave such problems before; even now, if I connect from other PCS with Gentoo or Mandriva.
    And the remote X through ssh works on my pc (alab174) if I connect (on the same LAN) to my laptop, (which also runs kubuntu, and which has the same problems with other pcs without kubuntu).

    Does anybody know what"s going on?

    Thanks, Ciao
    Leodp

    #2
    Re: ssh + X , strange problem

    1) You need to run ssh with the -x flag (done via a .bashrc alias comamnd in mandrake)
    2) You need X11forwarding set to yes in you sshd config file

    Check those and report back.

    Comment


      #3
      Re: ssh + X , strange problem

      Thanks, X11Forwarding was already to yes in /etc/ssh/sshd_config

      ssh -X login@PCname

      did it.
      I should have read the....

      Leo

      Comment

      Working...
      X