Use scp without Docker. Dockerscp

Source: Internet
Author: User
Tags scp command secure copy

Use scp without Docker. Dockerscp

Scp (secure copy) is used to remotely copy files in Linux. I believe that it is an essential skill to migrate projects between servers. Similar to the command cp, cp is only copied on the local machine and cannot be transferred across servers. scp transmission is encrypted.


Copy from local server to remote server:
(1) copy a file:
Scp local_file remote_username @ remote_ip: remote_file


(2) Copy directory (that is, the parameter-r of iterative replication is added ):
Scp-r local_folder remote_username @ remote_ip: remote_folder

 
Copy from remote server to local server:
The scp command from remote replication to local is similar to the above command, as long as the two parameters after the local copy to remote command are interchangeable

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.