Skip to content
/ rscp Public

SSH file upload/download tool in weak network environment

Notifications You must be signed in to change notification settings

M09Ic/rscp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSCP

弱网环境下的ssh文件上传/下载工具

SSH file upload/download tool in weak network environment

USAGE

  -b int
        each block size (bytes)
  -c string
        connect string, e.g ssh://root:[email protected]
  -download
        download mod
  -i string
        private key file path
  -lf string
        local file path
  -offset int
        offset
  -rf string
        remote file path (default "/tmp/164200825/")
  -upload
        upload mod

quickstart

upload

rscp -c ssh://root:[email protected] -lf bin -rf /tmp/bin -upload

download

rscp -c ssh://root:[email protected] -rm /home/bin -lf bin -download

options:

It will retry indefinitely, until the file is successfully downloaded or uploaded.

If the command is ended manually. You can use -offset flag to specify the block id of the breakpoint to continue the transfer

example:

rscp -c ssh://root:[email protected] -rf /home/bin -lf bin -download -offset 15

TODO

  • add ssh proxy
  • add socks proxy
  • add http/https proxy

THANKS

@passfoam

About

SSH file upload/download tool in weak network environment

Resources

Stars

Watchers

Forks

Packages

No packages published