Linux intranet-LAN file fast transfer

Use the scp command to quickly transfer files between two intranet servers. The scp syntax is as follows:

scp –r remote username@IP address: file name local directory

For example, if we want to transfer 10.10.4.67 from the /www/ftpDir directory of the server with the intranet IP of 10.10.1.1 to the /www/ftpDir folder of the current server, the command is as follows: 

scp -r root @10.10.1.1:/www/ftpDir/ftpDir.zip /www/ftpDir

The following prompt will appear next:

cp: cannot stat `root': No such file or directory

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

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

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

After entering yes, you will be asked to enter the password of the remote server (10.10.1.1). After entering it correctly, you can see the transfer progress.

The actual test is very fast. An 8G file on the intranet can be transferred in just a few minutes.

Guess you like

Origin blog.csdn.net/yexiaomodemo/article/details/127940146