Re: Using X via ssh from one windows machine to another

2006-11-09 Thread Brian Keener
hmm no hints - keep googling I guess.  I'm sure it must be a security/config 
issue - xhost or xauth issue somewhere - just haven't found the magic key yet 
since it works from Windows to my two linux machines.

Maybe wrong group - maybe should have been cygwin-apps for ssh even though I 
thought it was an X issue and belonged here? hmmm

thanks

bk




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Using X via ssh from one windows machine to another

2006-11-09 Thread Larry Hall (Cygwin X)

Brian Keener wrote:
hmm no hints - keep googling I guess.  I'm sure it must be a security/config 
issue - xhost or xauth issue somewhere - just haven't found the magic key yet 
since it works from Windows to my two linux machines.


Maybe wrong group - maybe should have been cygwin-apps for ssh even though I 
thought it was an X issue and belonged here? hmmm



I believe you have the proper group.  cygwin-apps is for packaging issues and
'setup.exe' problems.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Using X via ssh from one windows machine to another

2006-11-09 Thread Christopher Faylor
On Thu, Nov 09, 2006 at 12:25:13PM -0500, Brian Keener wrote:
hmm no hints - keep googling I guess.  I'm sure it must be a
security/config issue - xhost or xauth issue somewhere - just haven't
found the magic key yet since it works from Windows to my two linux
machines.

Maybe wrong group - maybe should have been cygwin-apps for ssh even
though I thought it was an X issue and belonged here?  hmmm

Sending this kind of question to cygwin-apps would be a sure-fire way to
get you unsubscribed from cygwin-apps.  It is not appropriate for that
list.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Using X via ssh from one windows machine to another

2006-11-09 Thread Brian Keener
Christopher Faylor wrote:
 Sending this kind of question to cygwin-apps would be a sure-fire way to 
 get you unsubscribed from cygwin-apps.  It is not appropriate for that 
 list.

As you already knew - you are correct - upon rereading I see my error.  I was 
thinking simply in terms of apps - my apologies for the confusion.   I should 
make a note to myself to reread the list descriptions periodically or at least 
before I suggest a post so I remain clear headed.  

bk




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Using X via ssh from one windows machine to another

2006-11-08 Thread Brian Keener
I'm stumped - I have tried googling cygwin.com for references to this problem 
and I am sure it has been discussed there before but I haven't hit on the 
correct keywords yet.  

I have Cygwin and X installed and from a bash prompt I can:

[EMAIL PROTECTED] ~
$ X -clipboard
[1] 3632
snip all the startup stuff
[EMAIL PROTECTED] ~
$ DISPLAY=:0.0;export DISPLAY

[EMAIL PROTECTED] ~
$ twm
[2] 2484

[EMAIL PROTECTED] ~
$ winProcEstablishConnection - Hello
winInitClipboard ()
winClipboardProc - Hello
winProcEstablishConnection - winInitClipboard returned.
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the 
display.

winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.

I will now have a nice X Desktop and can start additional additional programs 
and connections like:

[EMAIL PROTECTED] ~
$ xterm -bg blue -fg white 

I will get an xterm on my Xdesktop for this computer.  I can also use ssh to 
connect to a VMware linux machine on this same machine or others as in :

[EMAIL PROTECTED] ~
$ ssh -X -f -l briank atl-lt-5783-lnx xterm -fg grey -bg midnightblue -cr red
or
$ ssh -X -f -l briank softsrc-vm-lnx xterm -fg grey -bg midnightblue -cr red

I will get xterm sessions on my Xdesktop connected to either of these 2 linux 
machines but if I try to connect to my current workstation or another windows 
machine (either of which is running sshd as a service) the connection will 
fail:

$ ssh -X -f -l briank atl-lt-5783 xterm -fg grey -bg midnightblue -cr red
or
$ ssh -X -f -l briank softsrc-vm xterm -fg grey -bg midnightblue -cr red

ssh will actually ask for the password but then return to a command prompt.  If 
I instead do a :

$ ssh -X -l BrianK atl-lt-5783
or
$ ssh -X -l BrianK softsrc-vm

You have to remove the -f option since I am not specifying a program to run 
name and I will get a bash session on these two machines but if I then try to 
run xterm I will get an unable to open display error:

[EMAIL PROTECTED] ~
$ ssh -X -l BrianK atl-lt-5783
Enter passphrase for key '/home/BrianK/.ssh/id_rsa': 
Last login: Wed Nov  8 12:23:56 2006 from atl-lt-5783.fultonpaper.com
Fanfare!!!
You are successfully logged in to this server!!!

[EMAIL PROTECTED] ~
$ echo $DISPLAY


[EMAIL PROTECTED] ~
$ xterm
xterm Xt error: Can't open display: 
xterm:  DISPLAY is not set

[EMAIL PROTECTED] ~
$ 

granted in this case I am connecting to the same machine but even when I try 
this same scenario against the softsrc-vm machine I get the same result.  
Shouldn't the DISPLAY have been set by ssh.  I did notice my CYGWIN= is env is 
set to 'ntsec' only and I seem to recall something about it should be set for 
'ntsec tty'. 

Can someone point me to what I am missing here.  Like I say the Windows to 
Linux works great - just having trouble with the to Windows (either Windows to 
Windows or Linux to Windows) because I also tried from Linux to one of these 
Windows systems and cannot connect there either.

As a side note out of curiosity - why do I sometimes get these lines during twm 
startup:

winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.

But then sometimes I do not get the above but instead one indicating success.

Thanks for any and all insights and suggestions.

bk




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/