sftp : slow sftp commands with speed control for slow shared network
slow sftp commands with speed control for slow shared network
Prevent network monopoly by sftp
This sftp is an application using jcraft.
The directory under com is the unpacked file to create the jar file.
see jcraft
http://www.jcraft.com/jsch/
java -jar sftp.jar [RM |LS ] user@remote_ip:remote_file [-m] [-iID_rsa_file | -pPasswd] [-Pport]
func
GET | get : get remote_file to local_file (Success:0, Error:1)
PUT | put : put local_file to remote_file (Success:0, Error:1)
LS | ls : ls remote_file (Success:0, Not Found:1)
RM | rm : rm remote_file (Success:0, Error:1)
option
-iID_rsa_file : rsa id file (default ~/.ssh/id_rsa)
-pPassword : user/PASSWORD (only when using id/passwd)
-Pport : port (default 22)
-bBlockSize : BLOCKSIZE (deafult 1024 byte)
-sSleeptm : sleep_ms per blocksz (default 100 ms)
-m : print message
-h : process stat ('.' per block) 100 ms)
# Note:
Description Arguments must be in order
OK ) java -jar sftp.jar get user@remote_ip:remote_file -m
ERR) java -jar sftp.jar -m get user@remote_ip:remote_file
Do not use spaces for option values.
OK) -Pxxxxx
ERR) -P xxxxx