[KLUG Members] suse 9 remote x question

Andrew Thompson members@kalamazoolinux.org
Tue, 16 Dec 2003 03:38:18 -0500


On Mon, 2003-12-15 at 23:02, Bruce Smith wrote:
> > I am wanting to run a program from a remote server and display the
> > stuff on a local Xserver.  I know that in earlier versions of RedHat
> > I had to change a couple of security things.  In RedHat 8 it worked
> > automatically by default.  In SuSE I am not able to get it working. 
> > My RedHat books seem to be worthless as far as configuration files.  
> > 
> > I am opening an SSH session and then trying to run the program from
> > within the shell.  I have tried just the program name and also
> > program name hostname:0 and I get a message about Gtk being unable to
> > open the display.  
> > 
> > I did a search on the Internet and have not found anything yet... I
> > am kinda stumped.... I know I am missing something easy here...
> 
> In "/etc/ssh/ssh_config" try setting:
> 
> ForwardX11 yes
> 

You may also need to set, in /etc/ssh/sshd_config:

X11Forwarding yes

Note the 'd' in the filename, for ssh 'daemon'. That would be the
important configuration file on the server to which you wish to connect.
The file Bruce mentioned is the relevant one on the client, the
connecting machine. Also note the difference in the setting names:
ForwardX11 and X11Forwarding.

Something else you man need to check is whether you have xauth
available, I believe on BOTH machines. This gave me trouble on one of my
servers. It just would NOT forward X to my terminal no matter WHAT I had
in those configuration files UNTIL I installed the necessary package. In
Red Hat, that's XFree86-xauth. I haven't figured out which package, if
any, provides this in SuSE.

However, you should still be able to get X forwarding without xauth.
Just add the -X switch when you ssh to a machine:

ssh -X remote.machine.net

All xauth seems to do is take care of that automatically, but I haven't
really looked that deeply. If anyone else knows more about this
(especially how to get the same thing in SuSE!), I'd love to hear it!

-- 
Andrew Thompson <tempes@ameritech.net>
The Imagerie