Two Linux servers transfer files between LANs

Source: Internet
Author: User
Tags scp command

1.1 Experimental Environment:

Server operating system: centos6.7=192.168.24.37

Client operating system: centos6.7=192.168.24.36

Virtual machines: VMware Workstation

1.2 Experimental background

There are many ways to remotely replicate files from one server to another, where Sky today uses the Linux SCP command to accomplish this task. That is, from the server side copy a copy of the source file "mysql-5.6.20.tar.gz" to the client.

1.3 Experimental steps

Scp–r remote User name @IP address: file name local directory

[Local User name @IP address:] Can not be entered, you need to enter the remote user name corresponding password.

[Email protected] tools]# scp-r [email protected]:/home/skyboy/tools/mysql-5.6.20.tar.gz/usr/local/src/

Cp:cannot stat ' root ': No such file or directory

The authenticity of host ' 192.168.24.37 (192.168.24.37) ' can ' t be established.

RSA key fingerprint is 3b:99:9c:f4:0b:fc:17:ea:96:8a:47:f0:c1:0f:91:0a.

Is you sure want to continue connecting (yes/no)? Yes

warning:permanently added ' 192.168.24.37 ' (RSA) tothe list of known hosts.

[email protected] ' s password:

mysql-5.6.20.tar.gz 100% 5150KB 5.0mb/s 00:01

Summary: The SCP command can copy a native file to a remote server or copy a file from a remote server to a local computer, and the entire process is to copy the files from one Linux to the native Linux.


This article is from the "linux~dba~mba~edu" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1682943

Two Linux servers transfer files between LANs

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.