Copy files between different machines in Linux

Source: Internet
Author: User

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:

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.