Linux copy files from one machine to another Linux machine

Source: Internet
Author: User
Tags gz file

1. Function description
The SCP is security copy, which copies files or directories from one Linux system to another Linux system. SCP transmits data with SSH protocol, ensuring the security of data transmission, the format is as follows:
SCP remote User name @ip address: Absolute path to file local Linux system path
SCP local linux System file path remote user name @ip address: remote System file Absolute path name
The first format used for SCP is to copy a file or directory on a remote Linux system to a local Linux system, and the second is to copy a local file or directory to a path on a remote Linux system.

2. Example
(1) Currently we are in the IP "192.168.60.133" Linux system, plan to copy the/home/ixdba/etc.tar.gz file under the system to IP "192.168.60
168 "In the remote Linux system under the root user under the/tmp directory:
scp/home/ixdba/etc.tar.gz [Email protected]:/tmp
After the command is entered, the password for the "192.168.60.168" server root is required, and then the remote copy data is started.
If we are on a "192.168.60.168" server, you can also use the following command to transfer data:
SCP [Email protected]:/home/ixdba/etc.tar.gz/tmp
When the command is entered, a password of "192.168.60.133" server root is required, and the data is copied remotely.

Linux copy files from one machine to another Linux machine

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.