Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Remote ssh login and X
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
qwkbrnfox
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 231
Location: Vancouver, BC, Canada

PostPosted: Tue Nov 12, 2002 9:07 pm    Post subject: Remote ssh login and X Reply with quote

Hi All,

This ones a bit obscure. In a former life (RH 7.3) when I ssh'ed to another machine, I could run an X program remotely and the window would pop up locally. Now, in Gentoo, it won't. I've set xhost locally, so that doesn't seem to be the problem. Instead, the remote DISPLAY variable isn't being set properly, which seemed to happen automagically before. Note that I'm behind a firewall.

Previously (when this worked) DISPLAY=localhost:16.0
Now DISPLAY={ipname assigned to firewall}:0

I don't know where the 16 comes from, so it's hard to do this manually.

Thanks for any advice!

Todd
Back to top
View user's profile Send private message
choward
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 92

PostPosted: Tue Nov 12, 2002 9:54 pm    Post subject: ssh parameters Reply with quote

When you ssh did you remember to specify the -X flag? That caused me some problems when trying to run remote programs off the University server.
_________________
Craig Howard
4B Computer Science -- University of Waterloo
Back to top
View user's profile Send private message
qwkbrnfox
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 231
Location: Vancouver, BC, Canada

PostPosted: Tue Nov 12, 2002 10:04 pm    Post subject: Reply with quote

Ah-ha!

That's it. Thanks very much!

The flag must have been set automatically (somehow) in RH.
Back to top
View user's profile Send private message
Bi9Kahuna
n00b
n00b


Joined: 17 Oct 2002
Posts: 7

PostPosted: Wed Nov 13, 2002 12:36 am    Post subject: Reply with quote

Hi there,

You'll want to take a look at /etc/ssh/ssh_config. The parameters you want to change are the ForwardAgent and ForwardX11 parameters. I have mine set as below with the default being to forward (host *) but for specific hosts, I don't want forwarding turned on (servers that don't have X installed!).

Cheers!

Code:

Host HostYouDontWantForwarded
   ForwardAgent no
   ForwardX11 no

Host *
   ForwardAgent yes
   ForwardX11 yes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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