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 [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
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,
Harold
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 + 192.168.0.18"
3. right-click, exit.
4. open ssh session, set display to 192.168.0.1, 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: http://xfree86.cygwin.com/docs/ug/using-remote-session.html http://www.xfree86.org/current/Xserver.1.html#sect6 http://www.xfree86.org/current/xdm.1.html http://www.xs4all.nl/~zweije/xauth.html
On both Cygwin (192.168.0.1) and FreeBSD (192.168.0.18) I use XFree86 4.2.0 (165).
Thank you. Constantine.