Re: [JSch-users] How to use JSch file transfer library only?
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2005-04-28 01:39:23
|
Hi, +-From: Derek Kiang <Der...@jp...> -- |_Date: Wed, 27 Apr 2005 09:02:55 -0700 ___________ | |Hi All, I have a command-line application that is able to transfer |file from/to the remote host inside the firewall. But it takes as |much as two times longer than the Unix 'scp' command to complete |the task. I run the ScpFrom and ScpTo examples and it matches the |Unix 'scp' speed in my environment. Since my application does not |ask user password, a trusted environment by using Unix user name |to verify with predefined authroization list, is there anyway I |can use still use this JSch library to replace my own file |transfer model to speed up the performance? If it does, how? You can do that easily by modifying ScpFrom.java and ScpTo.java. They are using Swing API, so replace them with your own code. Please look at 'MyUserInfo' class included in them. Thanks, -- ymnk |