LinuxÏÂscp ÃüÁîʵÏÖÎļþ¸´ÖÆʾÀý
2019/10/10/17:45:06 ÔĶÁ£º1257 À´Ô´£º¹È¸èSEOËã·¨ ±êÇ©£º
°Ù¶ÈKÕ¾
scpÃüÁî¿ÉÒÔÖ§³Ö±¾µØÎļþ¸´ÖÆÒ²Ö§³ÖÔ¶³ÌÎļþ¸´ÖÆÁË,ÏÂÃæÎÒÃÇÀ´Îª¸÷λÕûÀíÁËһЩscp ÃüÁîʵÏÖÎļþ¸´ÖÆʾÀý,Ï£ÍûÕâЩÀý×Ó¶Ô¸÷λÓаïÖú.
¸´ÖÆÎļþ:
£¨1£©½«±¾µØÎļþ¿½±´µ½Ô¶³Ì
scp ÎļþÃû root@59.64.28.78:Ô¶³Ì·¾¶
£¨2£©´ÓÔ¶³Ì½«Îļþ¿½»Ø±¾µØ
scp root@59.64.28.78:ÎļþÃû ±¾µØ·¾¶
¸´ÖÆĿ¼:
£¨1£©½«±¾µØĿ¼¿½±´µ½Ô¶³Ì
scp -r Ŀ¼Ãû root@59.64.28.78:Ô¶³Ì·¾¶
£¨2£©´ÓÔ¶³Ì½«Ä¿Â¼¿½»Ø±¾µØ
scp -r root@59.64.28.78:Ŀ¼Ãû ±¾µØ·¾¶.
Àý×Ó:¿½±´Ô¶³ÌÎļþµ½±¾µØ:
scp root@192.168.0.1:/home/database.php /var/www/database.php
¿½±´±¾µØÎļþµ½ÆäËû·þÎñÆ÷:
scp /var/www/database.php root@192.168.0.1:/home/database.php
¿½±´Ä¿Â¼´øÉÏ -r ²ÎÊý,ssh·Ç22¶Ë¿Ú´øÉÏ-P ²ÎÊý.
scp -P 2133 -r root@192.168.0.1:/home/wwwroot/ /var/www/
scp -P 2133 /var/www/ root@192.168.0.1:/home/wwwroot/
¼¸¸ö¿ÉÄÜÓÐÓõIJÎÊý:
-v ºÍ´ó¶àÊý linux ÃüÁîÖÐµÄ -v Òâ˼һÑù,ÓÃÀ´ÏÔʾ½ø¶È,¿ÉÒÔÓÃÀ´²é¿´Á¬½Ó,ÈÏÖ¤ ,»òÊÇÅäÖôíÎó.
-C ʹÄÜѹËõÑ¡Ïî.
-r ´«µÝĿ¼ÏµÄËùÓÐÄÚÈÝ.
-P Ñ¡Ôñ¶Ë¿Ú,×¢Òâ -p ÒѾ±» rcp ʹÓÃ.
-4 Ç¿ÐÐʹÓà IPV4 µØÖ·.
-6 Ç¿ÐÐʹÓà IPV6 µØÖ·.