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