Skip to content

Instantly share code, notes, and snippets.

@yamingd
Created September 18, 2012 02:05
Show Gist options
  • Save yamingd/3740857 to your computer and use it in GitHub Desktop.
Save yamingd/3740857 to your computer and use it in GitHub Desktop.
use ssh and tar to copy files with two pc
tar cf – files | ssh user@192.168.1.18 “tar -C /home/jiaojy -xf -”
files为文件,或者目录
-C 后面指定要拷贝的地址,
user为192.168.1.18上的用户
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment