Walt Mankowski on 9 Sep 2005 14:34:48 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] remote x-session


On Thu, Sep 08, 2005 at 11:00:48PM -0400, Cosmin Nicolaescu wrote:
> On Thu, September 8, 2005 8:48 pm, Michael Lazin wrote:
> > I am attempting to connect to a linux box that I have a user account
> > on.  I can ssh fine, but I want to connect to the x-server and run x
> > apps.  I am using a g4 powerbook with tiger on it.  I have xfree86 on
> > my powerbook and am running gnome on it.   When I attempt X -query
> > hostname from within gnome it gives me the following error:
> >
> > cannot establish listening sockets: make sure an x server isn't already
> > running
> >
> > when I try to connect with a terminal in aqua it appears to connect
> > but nothing happens
> >
> > Any help would be appreciated.
> >
> > Thanks,
> >
> > Michael
> >
> 
> First of all, since you're on a Mac, make sure you have X11 running, and
> use its Terminal. Also, make sure your ssh is acutally using
> X11-forwarding: open a Terminal, su and make sure /etc/ssh_config has the
> following 3 lines:
> 
>    ForwardAgent yes
>    ForwardX11 yes
>    ForwardX11Trusted yes
> 
> The last line is optional, but it will save you a lot of crashing.
> 
> Also, on the machine you're sshing to, make sure you have X11 allowed.
> Make sure its /etc/ssh/sshd_config contains the following:
> 
> AllowTcpForwarding yes
> GatewayPorts yes
> X11Forwarding yes
> X11DisplayOffset 10
> X11UseLocalhost yes
> 
> Remeber to restart sshd on the server, and then you should be able to run
> xclock via ssh and have it pop up on your Mac.

Also make sure you're running "ssh -X" to tunnel X through your ssh
connection.  You can also go the opposite way, from linux to Mac.
With Tiger I have to do ssh -Y instead of -X to allow trusted
forwarding.  I'll have to check if setting ForwardX11Trusted will let
me go back to using -X.

Walt

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug