Found the problem (line 1335 of Session.java): if the serverAliveCountMax > 0,
then the read timeout received in the exception will never be acted on, since
the client will send a keepAlive message to refresh things.
I found that calling session.setServerAliveCountMax(0) fixed the problem and
t
Dear readers,
Thanks to Jcraft for a very useful library!
I wish that when I did a read() from a shell input stream that it would respect
the timeout that I set with Session.setTimeout().
Has anyone else found that this doesn't appear to work? Is there a workaround,
or a lower level interfac
If you are using SFTP, the ChannelSftp already has the ability to provide the
mode (OVERWRITE, RESUME, APPEND) when calling .get(..) or .put(..) methods.
These options allow you to only send/receive remaining bytes of the file.
Regards,
Erick
-Original Message-
From: Prakash Babu [mail
Hi,
I am using jsch-0.150-rc5 and it seems to actually solve the issue we had with
the verify: false error on Java 1.7.
A new release of jsch would be good, including availability in the maven
central repository.
Thanks for the very useful work you are doing.
Regards,
Antoine
On Apr 26, 201
Hi,
We are using jsch to transfer huge files from one host to the another.
In case there is ssh connection failure, is there a way to resume this
operation from where the copying failed rather than copying the entire
file again.
thanks,
Prakash
---