This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: setenv DISPLAY
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: Thomas Chadwick <j_tetazoo at hotmail dot com>
- Cc: cygwin-xfree at cygwin dot com
- Date: Tue, 24 Aug 2004 15:40:26 +0200 (MEST)
- Subject: RE: setenv DISPLAY
- References: <BAY8-F95Kr0awsRBxC70001e947@hotmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
On Tue, 17 Aug 2004, Thomas Chadwick wrote:
> So you're saying you're doing the "setenv DISPLAY" via the SSH terminal
> session between steps 2 and 3?
>
> I so, then you're completely circumventing the security provided by SSH
> (unless you're doing it intentionally, e.g. you're on a "trusted" network,
> or the encyption/decryption of the SSH tunnel is slowing things down too
> much).
>
> What you should be doing is using the "X-Forwarding" mechanism of SSH.
> Basically, it should go something like this:
>
> 1) Launch the Cygwin X-Server, Xwin.
> 2) From a local xterm, run "ssh -X remote_host"
better use ssh -Y remote_host. (See FAQ for details)
> 3) Once you're logged in, echo back the value of "DISPLAY" on the remote
> host. It should look something like ":8", or possibly "remote_host:8".
> 4) At this point, running "xterm &" should open a client window on the local
> X-Server. You do not need to, and should not, manually set the DISPLAY
> variable on the remote host when using ssh.
>
> I suspect that if you change your login script at the remote host such that
> it leaves DISPLAY alone, things will start working again.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723