您的位置:首页 > 运维架构 > Linux

linux命令 scp

2012-06-10 22:29 211 查看
man scp: scp copies files between hosts on a network.

最简单的用法:
scp zzr@10.103.33.131:/var/log/zzrlog /var/www/zzr/
The authenticity of host '10.103.33.131 (10.103.33.131)' can't be established.
RSA key fingerprint is 8b:c3:5e:a0:cf:0d:69:bd:xx:xx:xx:xx:xx:xx:xx:xx.

Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '10.103.33.131' (RSA) to the list of known hosts.
zzr@10.103.33.131's password:
Permission denied, please try again.

zzr@10.103.33.131's password:
zzrlog 100% 309MB 34.4MB/s 00:09
然后就把zzrlog复制到我现在操作的电脑上了

scp之前记得ping一下网络通不通,不然可能没反应了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: