CentOS uses SCP for file transfer between Linux systems __linux

Source: Internet
Author: User
Tags file copy ftp client scp command

Different Linux copy files commonly used in 3 ways, the first is FTP, which is one of the Linux installation FTP Server, so you can use the FTP client program to copy the file. The second approach is to use the Samba service, similar to the Windows file copy of the way to operate, more concise and convenient, the third is to use the SCP command for file replication.

The SCP is a security file copy, based on SSH login. Easy to operate, such as to the current one file copy to a remote other host, you can command the following.
Note:-RP can be recycled to copy directories
Linux Code
Scp/home/daisy/full.tar.gz Root@172.19.2.75:/home/root

You will then be prompted to enter the login password for the other 172.19.2.75 host's root user, and then copy it.

If you want to reverse the operation, it is also easy to copy the files from the remote host to the current system.
Linux Code
SCP root@172.19.2.75:/home/root/full.tar.gz/home/daisy/
#如果不是默认的22端口, use uppercase P for example
Scp-p 8382 upload.tar.gz Root@74.86.170.242:/home/root

Related Article

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.