linux命令 scp
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一下网络通不通,不然可能没反应了