Re: how to use X11 forwarding

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

 



Here's how it works when I connect to a Unix/Linux box via
Openssh under Cygwin on a Windows box.   On the Windows box
I define an env variable, 'export DISPLAY="localhost:0.0"'.
In my ssh_config I've defined:
   Compression yes
   ForwardAgent yes
   ForwardX11 yes
   Protocol 2
   KeepAlive yes
On the sshd (Linux) end, in my sshd_config I've defined:
   X11Forwarding yes
   X11DisplayOffset 10
   X11UseLocalhost yes
   KeepAlive yes
   UseLogin no
   UsePrivilegeSeparation yes
   Compression yes

On the Windows box I start an X11 server, either the one
that comes with Cygwin's port of XFree86 or something like
Hummingbird Exceed.  Then, 'ssh -2 -X -C user@xxxxxxxxxxxxxxx'
to open a Bash shell.  In the Bash shell DISPLAY will be
automatically defined as something like 'DISPLAY=localhost:10.0'.
Then I can just run '/usr/bin/X11/xterm &' and an xterm window
will open up on my PC, with the X11 connection tunneling thru
the secure connection with compression turned on to make it a
little less painfully slow.  'Netstat -a' should show that
port 6000 traffic is mapped to localhost, not the external
port.

I know it's working properly because the Unix or Linix host
is behind a firewall which blocks port 6000, plus my PC runs a
firewall that also blocks port 6000.

Hope this helps.

Doug Wyatt

Chen Yabing wrote:
I am just confused with what X11 forwarding can do.
suppose that I start Putty on my windows machine and connect to my linux
server using ssh. then how can I use it?
Does X11 forwarding can allow me to call X applications on the linux
server so that they run on my windowns machine?

----- Original Message -----
From: "Ted Zlatanov" <tzz@xxxxxxxxxxxx>
To: <psyche-list@xxxxxxxxxx>
Sent: Friday, May 23, 2003 2:46 AM
Subject: Re: how to use X11 forwarding



On Thu, 22 May 2003, chenyabi@xxxxxxxxxxxxxxx wrote:

I want to use xwin32 to connect my linux server from my windows
workstation. but I do not want clear text transmitted over the
network.  it seems X11 forwarding can encrypt the data over such
connections.  anybody can tell me how to use it practically?

The development version of Putty, and quite a few other SSH clients for Windows, support X11 forwarding back to the Windows machine.

Note that the Windows machine running XWin32 is called the "X server"
and the Linux machine is your "X client."  The terminology can be
confusing.

Ted


-- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/psyche-list






--


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Doug Wyatt     <dwyatt@xxxxxxxxxxxxxxxxxx>
Sys Admin - Kohlman Systems Research, Inc.
319 Perry St.,  Lawrence,  KS  66044   USA
Phone: 785-843-4099      Fax: 785-843-6459



--
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux