scp命令上传下载

2017-07-17  本文已影响49人  一笔春秋

1、上传

scp -P 22 -r  /temp  username@host:/usr/temp

备注:P(大写)是端口,r是递归拷贝

2、下载

scp -P 22  -r username@host:/usr/temp /temp

scp -P username@host:/user/temp/a.txt  /temp/a.txt

上一篇 下一篇

猜你喜欢

热点阅读