Cosmin Nicolaescu on 9 Sep 2005 02:58:49 -0000


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

Re: [PLUG] remote x-session


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

- -Cos

- --
GPG key fingerprint = DE9F 4664 E666 2BD1 903E  4F4D EA31 5FB1 C7F9 08C1

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDIPrg6jFfscf5CMERAu3yAJ9ze2kWcF0rKI2XkaXLS+Mgv1GjqQCfQbs9
G4Lk8UlQirmaX987kpN35zU=
=yS53
-----END PGP 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