2013年6月24日 星期一

scp

scp用法


1.複製遠端檔案到本地端
   scp -r  username@host:/remotePath/remoteFile /localPath/localfile
  ex:
    scp -r root@11.22.33.44:/root/install.log /home/install.log

2.複製本地端檔案到遠端

   scp localfile username@host:/remotePath/remoteFile
ex:
   scp /home/test.txt root@11.22.33.44:/root/tmp/test.txt