www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
Subject: | Re: How to run _X_ Session from RH8 via ssh -X? How to run vnc via ssh? |
Date: | Fri, 17 Mar 2006 13:03:50 -0600 |
Lines: | 84 |
Message-ID: | <441B0816.1030905@computer.org> |
References: | <NUTMEGfcjcMzfoV1qdi00000029 AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <00a701c649da$f91ad020$a501a8c0 AT CAM DOT ARTIMI DOT COM> |
Mime-Version: | 1.0 |
Cc: | cygwin-xfree AT cygwin DOT com |
User-Agent: | Thunderbird 1.5 (Windows/20051201) |
In-Reply-To: | <00a701c649da$f91ad020$a501a8c0@CAM.ARTIMI.COM> |
OpenPGP: | url=ldap://keyserver.pgp.com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Siegfried Heintze wrote: [snip] > > (2) For reasons I don't understand, there was a conflict between my rou= ter's > > sshd and my cygwin's sshd so I resolved the problem by changing the cyg= win's > > configuration file to start sshd on a different port. Now, using a Red = Hat 8 > > client, I can use both rdesktop and ssh to create two different simulta= neous > > sessions on my win2003 server. > > > > However, I cannot seem to start an X session from my "ssh -X -p 892 > > Administrator AT 209 DOT 22 DOT 31 DOT 134" session. I tried running "explorer ." and = that > > just hung. OK, that was not an X program. Then I tried > > /usr/X11R6/bin/xclock and it said it could not open the display. Having > > already done a xhost+ <remote wan address> before running ssh I tried e= xport > > DISPLAY=3D<client lan address>:0.0 but that did not help: it still coul= d not > > open the display. If you are using ssh -X or -Y you don't need to set DISPLAY, in fact ssh al= ready did set it. But if you set DISPLAY then X uses the normal ports and those = will have to be opened/redirected on the firewall. > > Do I need to punch a whole in my client's firewall? I doubt the will le= t me > > do that. Not if you only use ssh. But take in consideration that you changed ssh to= use port 892, that one is the one that will have to be opened. > > Don't I need to start the xserver? In the remote system? no. [snip] > > winCheckDisplayNumber - Cygwin/X is already running on display 0 It was running already but it's not needed unless you want to use VNC. > > (3) What about vnc? I have installed RealVNC on both the RH8 client and= the > > Windows 2003 server. For VNC you'll need to open port 5901 (or 5801 for http); this is only for = the first window, it really is 5900 + display number, in case you have more tha= n one user connecting to the same machine. > > Is there also a cygwin VNC? I don't remember seeing one. No. > > Can I make vnc tunnel thru ssh? Would I use the -L or the -R qualifier > > on ssh? What would that look like? Yes. You have to start the VNC server and then (assuming display 1 is used= ): client machine# ssh -NfC -L 5901:server.name.or.ip:15901 user AT server DOT name DOT o= r.ip server machine# ssh -gN -L 15901:localhost:5901 user AT localhost The numbers may have to be changed (as I said above) depending on what star= ting the server reported as display number or how is setup to start if you start= it from the X server. On the client you use as VNC server "localhost:1". HTH --=20 Ren=E9 Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |