Hi, I'm looking into building SFTP support into a project with Apache SSHD and JSch. I looked at the following unit test from sshd-core as a guideline for how to do SFTP:
http://svn.apache.org/repos/asf/mina/sshd/trunk/sshd-core/src/test/java/org/apache/sshd/SftpTest.java I have a couple quick questions: a) In the test method testExternal() I set the test to sleep indefinitely so I could test transfers of variable size files. Using the latest FileZilla client, I tried sending a file ~150MB and the throughput was less than ideal. I don't recall the exact numbers, but this is a transfer from localhost to localhost, and it took several minutes. Is there any way I can boost the performance to get better throughput? b) I want to calculate the MD5 on the incoming byte stream for a file, but it wasn't clear to me how to inject something like an interceptor that can get a-hold of the input stream in order to do so. Is this possible? c) Is there an event / callback mechanism to know when a file has been completely received? In my scenario, the client will be sending multiple files in one session, and as each file is read and completely written to disk, I need to trigger an event. Thanks in advance! Davis
