Transfer files to the server in linux, and transfer files in linux

Source: Internet
Author: User

Transfer files to the server in linux, and transfer files in linux

Scp secure file copy (ssh-based login)

 

1.If you want to transfer the local/home‑based file linux.tar.gz to the remote server 10.108.125.30, and save the account name of the remote server to the/home/test directory, perform the following operations:

Scp/home/linux.tar.gz name@10.108.125.30/home/test

You will be prompted to enter the server password and the correct password (Note: The Server File directory must have the read/write permission; otherwise, you must modify the permission)

2.If you want to copy files on the server to the local host directory, perform the following operations:

Scp name@10.108.125.30:/home/linux.tar.gz (name on your host)

3.Copy files in the entire directory of the remote server

Scp-r name@10.108.125.30:/home /*./

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.