Re: [JSch-users] java.io.IOException: End of IO Stream Read during key exchange

2012-09-11 Thread Erick Lichtas
Hi Atsuhiko,

Thanks for the reply.  I do have a timeout of 12ms (2min) being used by the 
Session#connect() method, but the error happens after about a 10-15 second 
wait.  The error appears to happen during the key exchange.  After the kexinit 
is sent, the buffer is read, which errors with 'End of IO Stream Read' which is 
thrown by com.jcraft.jsch.IO.getByte(..)

.
send_kexinit();

buf=read(buf); //this is the line that fails/times out
if(buf.getCommand()!=SSH_MSG_KEXINIT){
.

Again, it works on some attempts, and fails on others.

Regards,

E R I C K   L I C H T A S
Linoma Software
Senior Software Engineer
p. 402.944.4242 x714
f. 402.944.4243
www.LinomaSoftware.com
www.GoAnywhereMFT.com


-Original Message-
From: Atsuhiko Yamanaka [mailto:y...@jcraft.com] 
Sent: Monday, September 10, 2012 10:28 PM
To: Erick Lichtas
Cc: jsch-users@lists.sourceforge.net
Subject: Re: [JSch-users] java.io.IOException: End of IO Stream Read during key 
exchange

Hi,

   +-From: Erick Lichtas  --
   |_Date: Mon, 10 Sep 2012 19:18:06 + __
   |
   |Has anyone tried to use JSCH to connect to Smart File for an SFTP
   |transfer? I'm running into an issue where I'm getting what appears to
   |be a race condition during the key exchange.  I'm unable to determine
   |if it's an issue with the server, or the JSch API. I'm using JSCH 0.1.44,
   |but have also reproduced it on the latest 0.1.48. The connection seems to
   |work about 70% of the time, but will fail if you run it a handful of times.

The timeout has occurred during key exchange?
Have you sett-ed timeout for Session#connect()?


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users


Re: [JSch-users] java.io.IOException: End of IO Stream Read during key exchange

2012-09-10 Thread Atsuhiko Yamanaka
Hi,

   +-From: Erick Lichtas  --
   |_Date: Mon, 10 Sep 2012 19:18:06 + __
   |
   |Has anyone tried to use JSCH to connect to Smart File for an SFTP
   |transfer? I'm running into an issue where I'm getting what appears to
   |be a race condition during the key exchange.  I'm unable to determine
   |if it's an issue with the server, or the JSch API. I'm using JSCH 0.1.44,
   |but have also reproduced it on the latest 0.1.48. The connection seems to
   |work about 70% of the time, but will fail if you run it a handful of times.

The timeout has occurred during key exchange?
Have you sett-ed timeout for Session#connect()?


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users


[JSch-users] java.io.IOException: End of IO Stream Read during key exchange

2012-09-10 Thread Erick Lichtas
Has anyone tried to use JSCH to connect to Smart File for an SFTP transfer?  
I'm running into an issue where I'm getting what appears to be a race condition 
during the key exchange.  I'm unable to determine if it's an issue with the 
server, or the JSch API. I'm using JSCH 0.1.44, but have also reproduced it on 
the latest 0.1.48. The connection seems to work about 70% of the time, but will 
fail if you run it a handful of times.

com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO 
Stream Read
   at com.jcraft.jsch.Session.connect(Session.java:527)
   at com.jcraft.jsch.Session.connect(Session.java:162)
   at Sftp.main(Sftp.java:42)
Caused by: java.io.IOException: End of IO Stream Read
   at com.jcraft.jsch.IO.getByte(IO.java:84)
   at com.jcraft.jsch.Session.read(Session.java:853)
   at com.jcraft.jsch.Session.connect(Session.java:288)
   ... 2 more

Smart File (www.smartfile.com) offers a trial account 
and that is what I set up to test against.  I haven't been able to reproduce 
the issue with filezilla, open-ssh on linux, or winscp.

Regards,

E R I C K   L I C H T A S
Linoma Software
Senior Software Engineer
p. 402.944.4242 x714
f. 402.944.4243
www.LinomaSoftware.com
www.GoAnywhereMFT.com

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users