Viswa - 2013-11-08

Using JSCH to scp Upload a large files (100 MB+) is
extremely slow. A transfer takes several minutes
even on a local network. Transferring the same file
using the command line scp command takes only 30
in this i found that the buffer size is : 32K
InputStream in=jschChannal.getInputStream();
iReadsize = 1024 * 32;
iReadsize =,0,iReadsize);
if i change the iReadsize value to 1024 * 1024 also after read the iReadsize value is : 32K.
How can i change the buffer size and increase the speed of the SCPFrom Pls let me know.
SCPTo is not having any problem with buffer size i can keep 3Mib also. it works fine.