Blogger Information
Blog 2
fans 0
comment 0
visits 4830
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
复制远程服务器文件命令scp的使用
Hanael的博客
Original
751 people have browsed it

scp 命令的使用

  1. 将本地文件复制到远程服务器
    1. scp /home/andy/andy.txt username@ip:/home/dir_name/
  2. 将远程服务器文件下载到本地
    1. scp username@ip:/home/dir_name/andy.txt /home/dir_name
  3. 把192.168.0.10机器上的source.txt文件拷贝到192.168.0.11机器的/home/work目录下
    1. scp work@192.168.0.10:/home/work/source.txt work@192.168.0.11:/home/work/
  4. 拷贝文件夹,加-r参数
    1. scp -r /home/work/sourcedir work@192.168.0.10:/home/work/
  5. scp 命令非22端口拷贝
    1. scp -P <端口号> /home/andy/andy88.txt username@ip:/home/hanzhao/
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post