Linxu transfer files between each other:
SCP Command:
Scp Yes secure Copy used in linux cp cp The transport is encrypted. may have a slight effect on the speed. When your server hard disk becomes read-only read only System scp can help you to move the file out. In addition, the scp also very much does not account for the resources, does not increase the system load, at this point, rsync rsync ratio Scp will be faster, but when small files are numerous, rsync i/o very high, and scp< Span style= "font-family: ' The song Body '; > basically does not affect the normal use of the system.
from Linux The native file is uploaded to another Linux :( upload file is not a directory )
Format:
SCP files to be transmitted [email protected] destination IP: Path
Scp–r directory to be passed [email protected] destination IP: Path
Example:
[Email protected] ~]# SCP mysql-all.sql [email protected]:/root ( Pass Directory plus -r option )
The authenticity of host ' 192.168.20.17 (192.168.20.17) ' can ' t be established.
RSA key fingerprint Isaf:35:80:f2:c3:83:47:52:9b:aa:51:48:aa:b8:eb:f8.
Is you sure want to continueconnecting (yes/no)? Y
Please type ' yes ' or ' no ': Yes
warning:permanently added ' 192.168.20.17 ' (RSA) to the list of known hosts.
[email protected] ' s password:
Mysql-all.sql 100% 484KB 483.5kb/s 00:00
[Email protected] ~]#
SCP Mysql-all.sql [email protected]:/root
SCP Command file name User name @ destination IP Address Path
from Linux download files to Linux This machine:
[Email protected] ~]# SCP [email protected]:/root/mysql-auth.sql/root ( upload directory plus -R options )
The authenticity of host ' 192.168.20.24 (192.168.20.24) ' can ' t be established.
RSA key fingerprint iscc:41:f8:5f:05:13:8f:e5:ee:0f:30:5e:a7:34:ab:1d.
Is you sure want to continueconnecting (yes/no)? Yes
warning:permanently added ' 192.168.20.24 ' (RSA) to the list of known hosts.
[email protected] ' s password:
Mysql-auth.sql 100% 1909 1.9kb/s 00:00
[[Email Protected]host ~]#
[Email protected] ~]# scp-r [email protected]:/root/20.24/root
SCP [email protected]:/root/mysql-auth.sql /root
SCP Command User name @ destination IP Address: File path Local location
Linxu transfer files to each other