Jump to content

X over SSH [SOLVED]


Recommended Posts

Hi all,

 

I'm trying to run an X application over ssh, by process of elimination I've discovered the problem is on the server side. When I try to connect I get:

 

Molden: cannot connect to X server foo.york.ac.uk:0.0

 

where foo is the name of a client and Molden is the program I'm trying to run.

 

Looking in /var/log/messages I find lines like this:

 

Mar 16 13:24:53 qchemb su[27992]: PAM pam_putenv: delete non-existent entry; REMOTEHOST

Mar 16 13:24:53 qchemb PAM-env[27992]: Unknown PAM_ITEM: <XAUTHORITY>

Mar 16 13:24:53 qchemb su[27992]: PAM pam_putenv: delete non-existent entry; XAUTHORITY

 

Is this the cause of my problems? X forwarding is enabled in sshd_config.

Link to comment
Share on other sites

PAM was causing the problem, this was fixed by commenting out the lines

 

REMOTEHOST DEFAULT= OVERRIDE=@{PAM_RHOST}

 

and

 

DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}

 

in /etc/security/pam_env.conf on the server. This allows the forwarding to work, if anyone knows of a good reason why I shouldn't comment out this lines I'd like to hear about it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...