This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: ssh/X with two hops
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: Cygwin XFree Users List <cygwin-xfree at cygwin dot com>
- Date: Wed, 3 Sep 2003 20:06:28 +0200 (MEST)
- Subject: Re: ssh/X with two hops
- References: <200309031744.h83HiBob032654@wolf.cimsoft.com>
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 3 Sep 2003, Robert Mecklenburg wrote:
> I'm a newbie at ssh and would like some advice. I have a home pc
> (windows xp) and an office pc (windows xp) behind a firewall/gateway
> host (linux). I want to run X at home and display (on my home X
> server) an emacs running on my office pc. Here is my most recent
> attempt:
>
> I have cygwin sshd running on my office machine...
>
> 1. startxwin.sh at home
>
> 2. In an xterm run "ssh -X -L 22:osaka:2200 gateway" this allows my to
> login directly to my office machine but leaves an unnecessary login
> on the gateway. X port forwarding works in this login, but it is
> the wrong host.
>
> 3. In a new xterm run "ssh -X localhost". Now I am logged onto my
> office machine and hopefully X ports are being forwarded, but no!
>
> 4. When I "echo $DISPLAY" on my office machine the variable is empty.
Most likely X11Forwarding is disabled on that host.
check /etc/ssh/sshd_config for an entry
X11Forwarding yes
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723