View previous topic :: View next topic |
Author |
Message |
jax1 Tux's lil' helper
Joined: 24 Jan 2004 Posts: 76
|
Posted: Thu Nov 18, 2004 3:54 pm Post subject: ssh doesnt set DISPLAY variable correct |
|
|
Hey ppl,
I do:
from host1, and expect $DISPLAY to be set to host2:10 or possibly localhost:10 -- since I have:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
...set in sshd_config.
But when I log in, $DISPLAY is set to host1:0.0 , which, of course will not work. If I manually set DISPLAY to localhost:10, Xforwarding over ssh works fine.
I thought ssh sets $DISPLAY automatically if you enabled Xforwarding on both ends? (I know it does on other systems...)
$DISPLAY is _not_ set in .bash_profile, .bashrc, /etc/profile or in any loginscript as far as I can see.
Any thoughts?
|
|
Back to top |
|
|
SerfurJ l33t
Joined: 10 Apr 2004 Posts: 824 Location: Texas
|
|
Back to top |
|
|
jax1 Tux's lil' helper
Joined: 24 Jan 2004 Posts: 76
|
Posted: Thu Nov 18, 2004 4:31 pm Post subject: |
|
|
Thanx!
commenting the line that reads:
Quote: |
DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY} |
in /etc/security/pam_env.conf
does the trick |
|
Back to top |
|
|
|