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
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
本文标题:scp命令上传下载
本文链接:https://www.haomeiwen.com/subject/tcxqkxtx.html
网友评论