ubuntu远程上传文件到linux

2019-02-12 07:19:19   linux

  linux  

ubuntu终端操作

  1. 上传单个文件
  2. scp image.jpeg root@47.932.162.472:/horme/wwrwroot/uploads/avatar/
  3. prot 默认是22,如果使用默认可以不写
  4. scp /User/hellowood/wechat.jpg root@47.932.162.472:/horme/wwrwroot/uploads/avatar/
  5. 上传整个文件夹
  6. scp -p port -r file root@47.932.162.472:/horme/wwrwroot/uploads/avatar/file
  7. scp -r /User/hellowood/tomcat root@192.168.12.1:/horme/wwrwroot/uploads/avatar/file
  8. 下载单个文件
  9. scp :/horme/wwrwroot/uploads/avatar/iamge.jpg /User/hellowood/image.jpg
  10. 下载文件夹
  11. scp -r:/horme/wwrwroot/uploads/avatar/file User/hellowood/file