RE: ssh problem on Windows XP

2005-01-21 Thread Waiss, Garrett
Good luck. I gave up and downgraded to cygwin 1.5.10-3. If you are
running any release after that on XP SP2, there is a piping issue that
has not been addressed.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Neven Luetic
Sent: Friday, January 21, 2005 2:48 AM
To: cygwin@cygwin.com
Subject: ssh problem on Windows XP


Hello,

I know, problems have been reported concerning the use of ssh on windows
xp (ssh hangs). I would just like to confirm, if this is, what I'm
dealing with. And perhaps somebody knows some workaround until there is
a fix.

I have a cygwin installation on XP at my customers and on W2K at home.
My aim was to make some shellscripts I wrote available to some of the
windows users via a php-interface for administrative tasks on their
linux internet servers. 

I am using ssh with public keys to connect to the linux-servers.
What works:
I can ssh from my linux box to the linux servers.
I can call system(ssh [EMAIL PROTECTED] command) from php on
linux.
I can do all this on my W2K box (Vmware), when I start the apache
service as the same user, that has the public key.
However on the XP computers, I can only use ssh from the command line,
calling some script containing ssh via PHP hangs.

This is the client's errorlog (-vvv):

OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/xxx/.ssh/identity type -1
debug1: identity file /home/xxx/.ssh/id_rsa type -1
debug3: Not a RSA1 key file /home/xxx/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-END'
debug3: key_read: missing keytype
debug1: identity file /home/xxx/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version
OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-he
llman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED]
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,[EMAIL PROTECTED]
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server-client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client-server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 140/256
debug2: bits set: 511/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/xxx/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug3: check_host_in_hostfile: filename /home/xxx/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host 'xxx.xxx.xxx' is known and matches the RSA host key.
debug1: Found key in 

RE: ssh problem on Windows XP

2005-01-21 Thread Waiss, Garrett
I was lucky. Another developer hadn't upgraded in a while so I got the
older dll from him. If you've already upgraded to 1.5.12, then
downgrading to 1.5.10 won't work because there are dependencies in the
core apps. My hope is that eventually the piping issue for XP SP2 will
get resolved and I can upgrade again.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Neven Luetic
Sent: Friday, January 21, 2005 8:02 AM
To: Waiss, Garrett
Cc: cygwin@cygwin.com
Subject: RE: ssh problem on Windows XP


Where did You get the old version from? I didn't find any older versions
on the cygwin site. It should be a site, that kept a snapshot of the old
releases as complete as possible.

Am Freitag, den 21.01.2005, 06:51 -0800 schrieb Waiss, Garrett:
 Good luck. I gave up and downgraded to cygwin 1.5.10-3. If you are
 running any release after that on XP SP2, there is a piping issue that
 has not been addressed.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
 Of Neven Luetic
 Sent: Friday, January 21, 2005 2:48 AM
 To: cygwin@cygwin.com
 Subject: ssh problem on Windows XP
 
 
 Hello,
 
 I know, problems have been reported concerning the use of ssh on
windows
 xp (ssh hangs). I would just like to confirm, if this is, what I'm
 dealing with. And perhaps somebody knows some workaround until there
is
 a fix.
 
 I have a cygwin installation on XP at my customers and on W2K at home.
 My aim was to make some shellscripts I wrote available to some of the
 windows users via a php-interface for administrative tasks on their
 linux internet servers. 
 
 I am using ssh with public keys to connect to the linux-servers.
 What works:
 I can ssh from my linux box to the linux servers.
 I can call system(ssh [EMAIL PROTECTED] command) from php on
 linux.
 I can do all this on my W2K box (Vmware), when I start the apache
 service as the same user, that has the public key.
 However on the XP computers, I can only use ssh from the command line,
 calling some script containing ssh via PHP hangs.
 
 This is the client's errorlog (-vvv):
 
 OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
 debug2: ssh_connect: needpriv 0
 debug1: Connecting to xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
 debug1: Connection established.
 debug1: identity file /home/xxx/.ssh/identity type -1
 debug1: identity file /home/xxx/.ssh/id_rsa type -1
 debug3: Not a RSA1 key file /home/xxx/.ssh/id_dsa.
 debug2: key_type_from_name: unknown key type '-BEGIN'
 debug3: key_read: missing keytype
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug2: key_type_from_name: unknown key type '-END'
 debug3: key_read: missing keytype
 debug1: identity file /home/xxx/.ssh/id_dsa type 2
 debug1: Remote protocol version 2.0, remote software version
 OpenSSH_3.4p1
 debug1: match: OpenSSH_3.4p1 pat OpenSSH*
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_3.9p1
 debug2: fd 3 setting O_NONBLOCK
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug2: kex_parse_kexinit:

diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-he
 llman-group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit:

aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
 debug2: kex_parse_kexinit:

aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
 debug2: kex_parse_kexinit:

hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit:

hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit: first_kex_follows 0
 debug2: kex_parse_kexinit: reserved 0
 debug2: kex_parse_kexinit:
 diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit:

aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED]
 debug2: kex_parse_kexinit:

aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED]
 debug2: kex_parse_kexinit:

hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit:

hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit: none,zlib
 debug2

RE: 1.5.12: ssh hangs with Windows XP SP2

2005-01-12 Thread Waiss, Garrett
Hello all,

Has there been any traction regarding the pipe code issues and XP SP2?
I've keeping up with the posts, but have not seen any mention of a
possible work around or patch coming.

Thanks much,
Garrett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Waiss, Garrett
Sent: Thursday, December 09, 2004 1:03 PM
To: cygwin@cygwin.com
Subject: RE: 1.5.12: ssh hangs with Windows XP SP2


Unfortunately, -n doesn't help. I actually looked in the archives under
ssh hangs and read the various messages. I am really hoping that there
will a resolution for the pipe issue. Thanks for the response.

Garrett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Igor Pechtchanski
Sent: Thursday, December 09, 2004 10:42 AM
To: Waiss, Garrett
Cc: cygwin@cygwin.com
Subject: Re: 1.5.12: ssh hangs with Windows XP SP2


On Wed, 8 Dec 2004, Waiss, Garrett wrote:

 Cygwin version: 1.5.12
 OS: Windows XP SP2

 Before applying the SP2, ssh was working fine. Now ssh will hang with 
 this specfic case.

 This works:
 sh -c ssh -i c:/keys/id_foo [EMAIL PROTECTED] 'ls -l /opt/'

 However, putting this into a java class for instance will cause this 
 to
 hang:

 code
 import java.io.*;

 public class test {
public static void main(String[] args) {
   try {
  final String cmd = /bin/ssh -p 22 -i c:/keys/id_foo [EMAIL 
 PROTECTED]
'ls -l /opt';
  final Process p = Runtime.getRuntime().exec(new String[] {
 sh, -c, cmd
  });
  final InputStreamReader isr = new
InputStreamReader(p.getInputStream());
  final BufferedReader br = new BufferedReader(isr);
  String line;
  final StringBuffer sb = new StringBuffer(0);
  while((line = br.readLine()) != null) {
 sb.append(line);
 sb.append('\n');
  }
  System.out.println(sb.toString());
   }
   catch (Exception e) {
  System.out.println(e.getMessage());
   }
}
 }
 /code

 Is there a solution to this problem?

It's usually recommended to invoke remote commands that don't require
input with the -n ssh flag, which will close stdin -- try that.  If it
doesn't help, this could be the problem with the new pipe code that's
been mentioned on this list -- search the web archives for ssh hangs.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/


--
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/


--
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: 1.5.12: ssh hangs with Windows XP SP2

2004-12-09 Thread Waiss, Garrett
Unfortunately, -n doesn't help. I actually looked in the archives under
ssh hangs and read the various messages. I am really hoping that there
will a resolution for the pipe issue. Thanks for the response.

Garrett

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Igor Pechtchanski
Sent: Thursday, December 09, 2004 10:42 AM
To: Waiss, Garrett
Cc: [EMAIL PROTECTED]
Subject: Re: 1.5.12: ssh hangs with Windows XP SP2


On Wed, 8 Dec 2004, Waiss, Garrett wrote:

 Cygwin version: 1.5.12
 OS: Windows XP SP2

 Before applying the SP2, ssh was working fine. Now ssh will hang with 
 this specfic case.

 This works:
 sh -c ssh -i c:/keys/id_foo [EMAIL PROTECTED] 'ls -l /opt/'

 However, putting this into a java class for instance will cause this 
 to
 hang:

 code
 import java.io.*;

 public class test {
public static void main(String[] args) {
   try {
  final String cmd = /bin/ssh -p 22 -i c:/keys/id_foo [EMAIL 
 PROTECTED]
'ls -l /opt';
  final Process p = Runtime.getRuntime().exec(new String[] {
 sh, -c, cmd
  });
  final InputStreamReader isr = new
InputStreamReader(p.getInputStream());
  final BufferedReader br = new BufferedReader(isr);
  String line;
  final StringBuffer sb = new StringBuffer(0);
  while((line = br.readLine()) != null) {
 sb.append(line);
 sb.append('\n');
  }
  System.out.println(sb.toString());
   }
   catch (Exception e) {
  System.out.println(e.getMessage());
   }
}
 }
 /code

 Is there a solution to this problem?

It's usually recommended to invoke remote commands that don't require
input with the -n ssh flag, which will close stdin -- try that.  If it
doesn't help, this could be the problem with the new pipe code that's
been mentioned on this list -- search the web archives for ssh hangs.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/


--
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/



1.5.12: ssh hangs with Windows XP SP2

2004-12-08 Thread Waiss, Garrett
Cygwin version: 1.5.12
OS: Windows XP SP2
 
 
Before applying the SP2, ssh was working fine. Now ssh will hang with
this specfic case.
 
This works:
sh -c ssh -i c:/keys/id_foo [EMAIL PROTECTED] 'ls -l /opt/'
 
However, putting this into a java class for instance will cause this to
hang:
 
code
import java.io.*;
 
public class test {
public static void main(String[] args) {
try {
final String cmd = /bin/ssh -p 22 -i
c:/keys/id_foo [EMAIL PROTECTED] 'ls -l /opt';
final Process p = Runtime.getRuntime().exec(new
String[] {
sh, -c, cmd
});
final InputStreamReader isr = new
InputStreamReader(p.getInputStream());
final BufferedReader br = new
BufferedReader(isr);
String line;
final StringBuffer sb = new StringBuffer(0);
while((line = br.readLine()) != null) {
sb.append(line);
sb.append('\n');
}
System.out.println(sb.toString());
}
catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
/code
 
Is there a solution to this problem?
thx for your time.
Garrett Waiss


cygcheck.out
Description: cygcheck.out
--
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/