基于ssh的scp拷贝命令

    Read

scp(secure copy)是基于ssh的安全拷贝命令,scp常用的参数如下:

-2:Forces scp to use protocol 2. #基于ssh协议2SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

-4:Forces scp to use IPv4 addresses only. #基于TCP/IP ipv4协议SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

-P:port #接端口号SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

-p:Preserves modification times, access times, and modes from the original file. #保持文件或者目录的最后一次修改时间、属性。SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

-r:Recursively copy entire directories. #递归整个目录SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

-v:Verbose mode. #debug模式SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

系统环境:
主服务器hostname:SSH-MASTER #IP:192.168.199.171/24 Centos 6.4 2.6.32-358.el6.x86_64
辅服务器hostname:SSH-CLIENT-NO01 #192.168.199.172/24 Centos 6.4 2.6.32-358.el6.x86_64SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

试验过程:


ok,到此结束。主要参数实际上也没有几个吧?-P接端口,-p是文件属性,-r是递归。SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

申明:本文由BYRD原创(基于Centos6.4 X64),未经许可禁止转载!SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/ SourceByrd's Weblog-https://note.t4x.org/basic/ssh-secure-copy/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on April 25, 2014
  • 原文链接:https://note.t4x.org/basic/ssh-secure-copy/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: