ssh/X with two hops

Ehud Karni ehud@unix.mvs.co.il
Thu Sep 4 13:59:00 GMT 2003


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

On Wed, 3 Sep 2003 20:49:47 -0600, Robert Mecklenburg <mecklen@cimsoft.com> wrote:
>
> AG> Most likely X11Forwarding is disabled on that host.
> AG>
> AG> check /etc/ssh/sshd_config for an entry
> AG> X11Forwarding yes
>
> That's it!  Works perfectly.  Thanks!

Although you solved your problem I propose to use VNC (GPLed, from
http://www.realvnc.org or one of its clones). It has several advantage
on running Emacs with X11 forwarding.

1. It allows you to run anything on your office machine and see it on
   your home machine - not just X11 applications.
2. It is stateless - if the communication fails for any reason, you
   can reconnect and resume your work (like `screen' for ttys).
3. You have the options to connect "read only" and have multiple
   connections.

I know you can achieve 2 & 3 with Emacs on multiple X's too, but it is
more complicated, and from my experience it fails more often.

You'll still need the ssh to securely connect and tunnel through your
firewall, but you can disable the X11 forwarding (which is done on your
gateway machine and is considered security breach by some).

Ehud.


- --
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE/V0UvLFvTvpjqOY0RAgOrAJkB5mErvrwkV7MiAGhQl4szyuGmcwCeNhtc
/WyXux+QvJ+5tESL9P13kU8=
=5lFV
-----END PGP SIGNATURE-----



More information about the Cygwin-xfree mailing list