基于ssh的scp拷贝命令

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

-2:Forces scp to use protocol 2. #基于ssh协议2文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/ssh-secure-copy/

-4:Forces scp to use IPv4 addresses only. #基于TCP/IP ipv4协议文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/ssh-secure-copy/

-P:port #接端口号文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/ssh-secure-copy/

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

-r:Recursively copy entire directories. #递归整个目录文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/ssh-secure-copy/

-v:Verbose mode. #debug模式文 章 源 自 note.t4x.orgByrd's Blog-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_64文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/ssh-secure-copy/

试验过程:


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

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

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onApril 25, 2014
  • 原文链接:https://note.t4x.org/basic/ssh-secure-copy/
匿名

Comment

Anonymous

Slide puzzle verification.