Need some help on running the server on cygwin, and clients on FreeBSD.

Harold L Hunt II
Fri Apr 4 03:44:00 GMT 2003


You are accidentally trying to combine the steps of the two independent 
connection methods:

1) telnet
2) ssh

Since you have ssh setup, I suggest that you use ssh to tunnel your X 
connections, with the following command line:

ssh -X username@remote_hostname_or_ip_address

You shouldn't need to run xhost.  If you run 'ssh' within an xterm in 
Cygwin/XFree86 you shouldn't need to set the DISPLAY variable at all 
since it will aleady be set.

So, the steps to reproduce would be:

1) Using the standard startxwin.bat, launch Cygwin/XFree86 and an xterm 
(should happen automatically in the standard startxwin.bat)

2) In the xterm, login to your remote machine with X tunnelling enabled. 
  You enable X tunnelling using the -X parameter (it has to be a BIG X, 
not a little x):

ssh -X username@remote_hostname_or_ip_address

3) Launch your X apps and they should appear in Cygwin/XFree86.

You may have to enable X tunnelling for ssh on your BSD machine... but 
you can do a general Google search for how to do that.

Good luck,


Constantine wrote:
> Hello!
> I am trying to run the X server on my cygwin machine, and the clients on 
> my FreeBSD 4.7 box. As of today, to start the session I need to:
> 1. type "startx"
> 2. type "xhost +"
> 3. right-click, exit.
> 4. open ssh session, set display to, and run startkde.
> I do believe that this is a very complicated steps to follow, and I 
> would highly appreciate if someone could explain, how could I set up the 
> system to follow all these steps automatically.
> A bit of the reference material I was trying to follow:
> On both Cygwin ( and FreeBSD ( I use XFree86 
> 4.2.0 (165).
> Thank you.
> Constantine.

More information about the Cygwin-xfree mailing list