首页 > 其他 > 详细

scp命令

时间:2018-07-27 16:53:47      阅读:205      评论:0      收藏:0      [点我收藏+]
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命令

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!