This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ssh/X with two hops


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]