美文网首页
2019-11-29linux下使用scp传输文件

2019-11-29linux下使用scp传输文件

作者: 0ne0ne | 来源:发表于2019-11-29 17:11 被阅读0次

从本地复制到远程

scp local_file remote_username@remote_ip:remote_folder
或者
scp local_file remote_username@remote_ip:remote_file
或者
scp local_file remote_ip:remote_folder
或者
scp local_file remote_ip:remote_file

复制目录的话 记得加 -r参数

从远程复制到本地

scp root@remote_ip:/home/root/xxx.txt /home/root/xxx.txt
scp -r remote_ip:/home/root/xxx.txt /home/root/xxx.txt

-p 端口号

文章同时也会在我的博客 0ne0ne.com同步更新。

相关文章

网友评论

      本文标题:2019-11-29linux下使用scp传输文件

      本文链接:https://www.haomeiwen.com/subject/pnklfctx.html