Use scp to transmit files in linux

Source: Internet
Author: User
Linux using scp transfer File 1, download the file scpusername @ servername:/path/filename from the server such as scpcodinglog@192.168.0.101: /home/kimi/test.txt download the/home/kimi/test.txt file on 192.168.0.101 to the current directory 2 .. linux using scp transfer File 1, download the file scp username @ servername:/path/filename from the server such as scp codinglog@192.168.0.101: /home/kimi/test.txt download the/home/kimi/test.txt file on 192.168.0.101 to the current directory. 2. Upload the local file to scp/path/filename username @ servername: /path, for example, scp/var/www/test. php codinglog@192.168.0.101:/var/www/put the local/var/www/directory test. upload the php file to the/var/www/directory on the server 192.168.0.101. 3. download the entire directory www.2cto.com scp-r username @ servername: remote_dir/local_dir/from the server. for example: scp-r codinglog@192.168.0.101/home/kimi/test/home/kimi/4. Upload the directory to the server scp-r local_dir username @ servername: remote_dir for example: scp-r test codinglog@192.168.0.101: /var/www/upload the test directory under the current directory to the/var/www/directory author zhcheng of the server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.