How to Copy files between Scp commands in Linux

Source: Internet
Author: User
Tags ftp client scp command
Article Title: Scp command file Copy method between Linux systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Use scp command to copy files between Linux systems

There are three common methods to copy files between different Linux systems. The first method is ftp, that is, installing the ftp Server on one of the Linux systems, in this way, another ftp clIEnt program can be used to copy files. The second method is to use the samba service, similar to the Windows file copy method, which is simple and convenient. The third method is to use the scp command to copy files.

Scp is a file copy with Security and is used for ssh logon. For example, to copy the current file to another remote host, you can run the following command.

Scp/var/lib/mysql/cacti. SQL root@192.168.0.171:/var/lib/mysql/

Then, you will be prompted to enter the login password of the root user of another host 192.168.0.171, and copy it.

If you want to copy files from the remote host to the current system, it is also very easy.

Scp root@192.168.0.171:/var/lib/mysql/cacti. SQL/var/lib/mysql/

 

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.