Qchem Posted March 16, 2005 Report Share Posted March 16, 2005 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. Quote Link to comment Share on other sites More sharing options...
Gowator Posted March 16, 2005 Report Share Posted March 16, 2005 OK, just checking but did you xhost + on the xserver? Quote Link to comment Share on other sites More sharing options...
Qchem Posted March 16, 2005 Author Report Share Posted March 16, 2005 hmm: xhost thallium xhost: unable to open display "thallium.york.ac.uk:0.0" The same client can run the same app on other servers. Odd Quote Link to comment Share on other sites More sharing options...
Qchem Posted March 17, 2005 Author Report Share Posted March 17, 2005 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.