11 月 292012
 

复制本地主机文件到远端主机指定目录

# scp awstats-7.0.tar.gz username@66.147.240.171:~/public_html/resource/
The authenticity of host '66.147.240.171 (66.147.240.171)' can't be established.
RSA key fingerprint is 0f:90:3f:04:2c:b4:d4:94:b0:a4:77:d8:d4:45:41:75.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '66.147.240.171' (RSA) to the list of known hosts.
username@66.147.240.171's password:
awstats-7.0.tar.gz 100% 1225KB 1.2MB/s 00:00
[root@oracle ~]#

复制远端主机指定文件到本地主机当前目录

#scp root@192.168.11.150:/usr/local/tomcat/logs/app01_access_log.2012-11.txt ./

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)