Copy files between different machines in Linux
In Linux, the scp command is used to copy files between different machines.
(1) Local Machine: scp local file destination:
For example: scp/home/odp-web.war root@192.168.6.137:/usr/local/Tomcat/wepapps/
(2) other machines to test the local machine: scp local path of files on other machines
For example: scp root@192.168.6.137:/usr/local/Tomcat/wepapps // home/odp-web.war
Supplement: File Transfer between scp and Windows (run scp in Linux, and there is no scp command tool in Windows)
If you want to transmit files through the scp command with Windows, you must first install the ssh server on Windows, such as Bitvise SSH Server (you may need to modify the firewall configuration to open port 22)
After running the ssh server on Windows, you can run the scp command on other Linux machines, such:
Upload to Linux: scp 'bkjia @ 192.168.3.202:/c:/Users/bkjia/Desktop/read \ note.txt './
Transfer to other Windows: scp./RUNNING.txt bkjia@192.168.3.202:/c:/Users/bkjia/Desktop/
In addition, because of the ssh server, other machines can use tools such as xshell to connect to Windows.
Using SCP in Linux does not require a password to transfer files
Scp implements file transfer between Mac and Linux servers
Configure scp to transfer files between Linux and Unix without a password
Ten SCP transmission command examples
Cp/scp command + scp command in Linux
CentOS cannot use scp command Solution
Copy files between two Linux Hosts using scp
This article permanently updates the link address: