Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh doesnt set DISPLAY variable correct
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jax1
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2004
Posts: 76

PostPosted: Thu Nov 18, 2004 3:54 pm    Post subject: ssh doesnt set DISPLAY variable correct Reply with quote

Hey ppl,

I do:

Code:
ssh -X host2


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?
:roll:
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Thu Nov 18, 2004 4:10 pm    Post subject: Reply with quote

i had a similar problem. the solution is here https://forums.gentoo.org/viewtopic.php?t=250879
Back to top
View user's profile Send private message
jax1
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2004
Posts: 76

PostPosted: Thu Nov 18, 2004 4:31 pm    Post subject: Reply with quote

Thanx!

commenting the line that reads:

Quote:

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


in /etc/security/pam_env.conf


does the trick 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum