Linxu transfer files to each other

Source: Internet
Author: User
Tags secure copy

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

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.