码迷,mamicode.com
首页 > 其他好文 > 详细

scp命令

时间:2018-07-27 17:00:15      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:...   ssh1   entity   ide   com   style   bsp   span   att   

scp命令: 

secure copy (remote file copy program)

安全拷贝

语法:

scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2

选项:

-1 指定使用ssh1协议

-2 指定使用ssh2协议

-4 使scp使用ipv4寻址

-6 使scp使用ipv6寻址

-r 复制整个目录

-P 若防火墙指定了scp的端口,则使用-P指定端口

实例:

[root@www1 ~]# scp root@192.168.146.128:/root/1.log /tmp/
Address 192.168.146.128 maps to www.mtime.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
root@192.168.146.128's password:
1.log                                                                                                                                                      100%   34KB  33.5KB/s   00:00
[root@www1 ~]# ll /tmp/1.log
-rw-r--r-- 1 root root 34322 7月  27 16:21 /tmp/1.log
[root@www1 ~]#


scp命令

标签:...   ssh1   entity   ide   com   style   bsp   span   att   

原文地址:http://blog.51cto.com/12107790/2151158

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!