
/Copy-Files-Nautilus-587fc0fc3df78c17b6b923cf.png)
To download and upload files, you just need to select the concerned files and drag it to the appropriate location. Step 4: Upload the local files to server B.Step 2: Download the files from server A to your local system (Windows).You can browse through the files in a server using an utility like WinSCP. In this approach, we need not login to the remote server using a terminal utility. With this, you will copy your file or directory successfully. Type the password (will not be visible on screen) and press ENTER key. You will be prompted to enter the password of the server A from where files are to be copied. To copy the entire directory, use scp -r. We can specify a path instead it.įor our case, the real command is: scp. is to get the file in the current working directory. Once done, use the following command to copy file named "information.txt" from server A to current server: scp file/. In this step, login to server B where you want to copy the files and go to the location you want to keep the files. Step 3: Login to the second server and use scp command to copy files. It might be that you need to copy the file named "information.txt" in the current location. It will give an output as: /home/opengenus/iq/ We can get the absolute path of the current position we are on using the following command: pwd If you want to copy an entire directory, get the absolute path of the directory. Get the file path of the file you want to copy.

Login to remote server using an utility like MobaXterm. Step 2: Get file path of the files to be copied. To get the IP address of the system you are logged, use the following command: ifconfigįor example, following are information of two servers: Server A Be sure to get the IP address of the servers as the hostname will not work with scp command which we will use. Get the Login information for both servers. The detailed steps are as follows: Step 1: Get login information for each server.Īssume we have to copy a file F from server A to server B. Step 3: Login to the second server and use scp command to copy files.Step 2: Get file path of the files to be copied.Step 1: Get login information for each server.The steps to copy files from one server to another server are: Approach 1: Copy files using SCP command in LinuxĪpproach 1: Copy files using SCP command in Linux.

This involve using commands like scp or utilities like WinSCP. In this article, we have explored the steps to copy files from one remote server to another remote server.
