How to run X Session from RH8 via ssh -X? How to run vnc via ssh?
Thanks for all the help so far. I hope this will be a 100% cygwin-mailing-list compliant posting. (1) I read the description of TOFU and I still don't understand it. I don't understand what I am doing wrong. If I want to quote a previous posting, should I not put the quoted text first and then my response? (2) For reasons I don't understand, there was a conflict between my router's sshd and my cygwin's sshd so I resolved the problem by changing the cygwin'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 simultaneous sessions on my win2003 server. However, I cannot seem to start an X session from my ssh -X -p 892 [EMAIL PROTECTED] 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 export DISPLAY=client lan address:0.0 but that did not help: it still could not open the display. Do I need to punch a whole in my client's firewall? I doubt the will let me do that. Don't I need to start the xserver? Here is my attempt: startxwin.bat - Starting on Windows NT/2000/XP/2003^M Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-4 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: /usr/X11R6/bin/XWin -multiwindow -clipboard -silent-dup-error _XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winCheckDisplayNumber - Cygwin/X is already running on display 0 Fatal server error: InitOutput - Duplicate invocation on display number: 0. Exiting. winDeinitMultiWindowWM - Noting shutdown in progress (3) What about vnc? I have installed RealVNC on both the RH8 client and the Windows 2003 server. Is there also a cygwin VNC? I don't remember seeing one. Can I make vnc tunnel thru ssh? Would I use the -L or the -R qualifier on ssh? What would that look like? Thanks -- 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/
RE: How to run X Session from RH8 via ssh -X? How to run vnc via ssh?
On 17 March 2006 15:44, Siegfried Heintze wrote: Thanks for all the help so far. I hope this will be a 100% cygwin-mailing-list compliant posting. (1) I read the description of TOFU and I still don't understand it. I don't understand what I am doing wrong. If I want to quote a previous posting, should I not put the quoted text first and then my response? Yes, that is exactly what you /should/ do. It's not what you /did/ do here:- http://www.cygwin.com/ml/cygwin/2006-03/msg00055.html where you put your reply at the top and then quoted the /entire/ previous post beneath it without snipping the unnecessary quotation, and that's what TOFU means: TOp-posted reply with FUll quotation underneath. cheers, DaveK -- Can't think of a witty .sigline today -- 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/
Re: How to run X Session from RH8 via ssh -X? How to run vnc via ssh?
snip However, I cannot seem to start an X session from my ssh -X -p 892 [EMAIL PROTECTED] session. snip I have previously reported this behavior, and not seen a fix, it used to work. The problem is running xauth under the covers hangs. If you add -v -v -v to your line above, you'll see it hang like: debug2: x11_get_proto: /usr/X11R6/bin/xauth -f /tmp/ssh-c96kVgf686/xauthfile generate 127.0.0.1:0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2/dev/null If you remove the X forwarding switch (i.e., not use -X) you should be able to login. If you kill the X server and/or kill the hung xauth process, an 'empty' ssh Window (non-X) will appear, indicating to me that for some reason, xauth is looking for input from the console vs. stdin. As a work around, you can manually reverse forward the display, something like: ssh -R 6001:localhost:6000 [EMAIL PROTECTED] then manually setting your display, in the above case: export DISPLAY=:1 Manually picking a port as above can interfere or fail if it is already in use, using the -X (or -Y) enlists the sshd on the target to find a free port. Brett -- 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/
RE: How to run X Session from RH8 via ssh -X? How to run vnc via ssh?
On 17 March 2006 16:19, Brett Serkez wrote: snip However, I cannot seem to start an X session from my ssh -X -p 892 [EMAIL PROTECTED] session. snip I have previously reported this behavior, and not seen a fix, it used to work. The problem is running xauth under the covers hangs. If you add -v -v -v to your line above, you'll see it hang like: debug2: x11_get_proto: /usr/X11R6/bin/xauth -f /tmp/ssh-c96kVgf686/xauthfile generate 127.0.0.1:0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2/dev/null If you remove the X forwarding switch (i.e., not use -X) you should be able to login. If you kill the X server and/or kill the hung xauth process, an 'empty' ssh Window (non-X) will appear, indicating to me that for some reason, xauth is looking for input from the console vs. stdin. What makes you think so? Maybe it's trying to generate some standard output, since that line only redirects stderr. Maybe it's the server not sending a reply, and it's not hung, nor waiting for input, just waiting for the timeout to occur - 1200 seconds is twenty minutes, are you sure you waited that long? cheers, DaveK -- Can't think of a witty .sigline today -- 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/