View previous topic :: View next topic |
Author |
Message |
qwkbrnfox Apprentice
Joined: 05 Nov 2002 Posts: 231 Location: Vancouver, BC, Canada
|
Posted: Tue Nov 12, 2002 9:07 pm Post subject: Remote ssh login and X |
|
|
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 |
|
|
choward Tux's lil' helper
Joined: 08 Nov 2002 Posts: 92
|
Posted: Tue Nov 12, 2002 9:54 pm Post subject: ssh parameters |
|
|
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 |
|
|
qwkbrnfox Apprentice
Joined: 05 Nov 2002 Posts: 231 Location: Vancouver, BC, Canada
|
Posted: Tue Nov 12, 2002 10:04 pm Post subject: |
|
|
Ah-ha!
That's it. Thanks very much!
The flag must have been set automatically (somehow) in RH. |
|
Back to top |
|
|
Bi9Kahuna n00b
Joined: 17 Oct 2002 Posts: 7
|
Posted: Wed Nov 13, 2002 12:36 am Post subject: |
|
|
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 |
|
|
|