Hi Atsuhiko,
Thanks for the reply. I do have a timeout of 120000ms (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:[email protected]]
Sent: Monday, September 10, 2012 10:28 PM
To: Erick Lichtas
Cc: [email protected]
Subject: Re: [JSch-users] java.io.IOException: End of IO Stream Read during key
exchange
Hi,
+-From: Erick Lichtas <[email protected]> --
|_Date: Mon, 10 Sep 2012 19:18:06 +0000 ______
|
|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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users