Ubuntu14.04 using SCP remote transfer commands for server file transfer

Source: Internet
Author: User
Tags ssh port

1. Copy the files on the other server to the local

sudo SCP [Email protected]_ip:/home/aaa/bbb/ccc/ddd/bbb

The above command means to copy the BBB file under the remote server/home/aaa/directory to the local/ccc/ddd/folder (Note: If the server SSH port is 22 can omit the-p parameter, if the server SSH port is not 22 need to add the-p parameter, followed by SSH port number)

2. Copy the directory of another server to local, and need to add the-r parameter on the copy file

sudo SCP -R [email protected]_ip:/home/aaa/bbb//ccc/ddd/

The above command means to copy the BBB directory of the remote server to the local DDD directory

3. Copy the local file to another server

sudo SCP /ccc/ddd/bbb [email protected]_ip:/home/aaa/

The above command means to copy the local BBB file to the AAA directory of the remote server.

4. Copy the local folder to the remote server

Also add-r parameter, please refer to the above

Ubuntu14.04 using SCP remote transfer commands for server file transfer

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.