On Wed, Dec 21, 2005 at 04:23:29PM +0000, Paul Howarth wrote: > Jack Howarth wrote: > > Is anyone else having trouble getting ssh to tunnel X11-forwarding? > >On MacOS X the following works flawlessly... > > > >1) Enable the Remote Login service (ssh) on remote.foo.bar > >2) On local.foo.bar execute... > > > >xhost +remote.foo.bar > >ssh -X -l username remote.foo.bar > > > >3) once logged into remote.foo.bar via ssh execute... > > > >setenv DISPLAY local.foo.bar:0.0 > > > >With those commands I can run xcalc and glgears between two MacOS X > >10.4 boxes but these commands do not appear to work from a Fedora Core 4 > >or RHEL3 box to either Fedora Core 4 or MacOS X 10.4. Any ideas on what > >could be going wrong? With linux running xcalc fails with an error of... > > > >Error: Can't open display local.foo.bar:0.0 > > > >Thanks in advance for any advice. > > Why not save yourself a lot of trouble by skipping the "xhost" and > "setenv DISPLAY" steps, and actually use ssh's X11-forwarding? > > 1) Enable the Remote Login service (ssh) on remote.foo.bar > 2) On local.foo.bar execute... > > ssh -X -l username remote.foo.bar > > 3) once logged into remote.foo.bar via ssh execute... > > xcalc > > etc. > > Paul. Or even better enable x11 forwarding in ssh_conf ans sshd.conf. -- ======================================================================= What the large print giveth, the small print taketh away. ------------------------------------------- Aaron Konstam Computer Science Trinity University telephone: (210)-999-7484