Transfer: transfer files between two servers Linux

Quoted from: https://www.cnblogs.com/gudongcheng/p/8064808.html

Input: scp /home/helpteach/project/mallupload/1509681299449.png [email protected]: / home / test

Then beat the Enter key, you can see the files being transferred, such as the mouse again sparking instructions have been transferred, and for everyone to look at dismantling statement

 

Duikao folders (including the folder itself)

scp -r   /home/helpteach/project/mallupload/ [email protected]:/home/test

 

Duikao folder of all files (not including the folder itself)

scp   /home/helpteach/project/mallupload/* [email protected]:/home/test

 

 Duikao file and rename

scp  /home/helpteach/project/mallupload/1509681299449.png [email protected]:/home/test/test.png

 

/home/helpteach/project/mallupload/1509681299449.png: file to be transferred

root: ssh server target account name

Back @: IP address of the destination server

: Back: to be transferred to the destination server's file directory

Guess you like

Origin www.cnblogs.com/x-jingxin/p/11280507.html