use*_*686 10
我知道的所有 SSH 实现都包含 SFTP,所以我不明白您为什么不想使用它。
反正:
(cd sourcedir && tar cf - file otherfile) | ssh host "cd targetdir && tar xvf -"
Run Code Online (Sandbox Code Playgroud)
或者对于单个文件,不保留元数据:
ssh host "cat > targetfile" < sourcefile
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3702 次 |
| 最近记录: |