天天看點

centos下scp指令安裝和使用

安裝scp:yum -y install openssh-clients

複制檔案(本地>>遠端):scp test.txt [email protected]:/home/Lee/test/

複制檔案(遠端>>遠端):scp [email protected]:/home/Lee/test/test.txt /home/Lee/test/

複制目錄(本地>>遠端):scp -r test/ [email protected]:/home/Lee/test/

複制檔案(遠端>>本地):scp -r [email protected]:/home/Lee/test/ /home/Lee/

 本文轉自 Lee_吉 51CTO部落格,原文連結:http://blog.51cto.com/12173069/2051304

繼續閱讀