On Sun, Nov 10, 2002 at 04:04:01PM +0100, Henk wrote:
> I use ssh to connect to My.FreeBSD.Machine from My.Main.Machine running
> FreeBSD and xdm. xwin is running properly on My.Main.Machine.
> 
> When trying to run mozilla on My.FreeBSD.Machine I get the error:
>  Gtk-WARNING **: cannot open display: ""
> When running xhost I get the following error:
>  xhost:  unable to open display ""
> 
> I do not export $DISPLAY=My.FreeBSD.Machine:0.0
> It's supposed automatically set to My.FreeBSD.Machine:X+1.0 when I log in
> with ssh.

On the server (sshd) side, you need "X11Forwarding yes" in
/etc/ssh/sshd_config (which is the default, so you can just leave the
X11Forarding line commented out).  You'll also need xauth available
--- it's part of the XFree86-clients port, which is slightly
unfortunate as practically everything else you need comes out of the
XFree86-libraries port.

On the client side, either in /etc/ssh/ssh_config or in ~/.ssh/config
you need "ForwardX11 yes" in a host section matching the server.  Or
you can just use the '-X' flag to ssh(1) or slogin(1) on the command
line.

The DISPLAY variable you'll see automatically set up on the server
will be something like localhost:10.0

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to