How to transfer files between two Linux virtual servers
The higher the roof, the higher the snow. The headache of someone with two Linux servers becomes clear when you want to transfer files between the two Linux servers. We want to use different methods here to transfer the file from one server to another with the help of the SCP software.
SCP is a tool for transferring files between two Linux virtual servers. It is not the only tool in this field, but it is one of the best.
So, join us to learn how to transfer files between two Linux virtual servers as easily as possible.
How to transfer files between two Linux virtual servers
First, enter the root password of the Linux virtual server from which you want to transfer a file.
After that, enter the following code.
scp -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null host_list deepak@10.43.138.2:/tmp/
Password:
In the code we have given you, you must enter the file address, the name of the file you want to transfer, and the IP address of the Linux virtual server to which you want to transfer the file.
Note 1: Instead of @deepak, it can be the destination username.
Note 2: You can enter root instead of /tmp/
Enter the destination Linux virtual server password and the server in the third step.
In the fourth step, you can use cd to enter the desired path and view the transferred file. As you can see in the picture, the transferred file is test.txt.
Conclusion
In this article, we have taught you step-by-step how to transfer files between two Linux virtual servers. Note that this method is only one of several file transfer methods. If you know another method that helps transfer files between two virtual servers, share it in the comments section. If you need a high-speed virtual server with 24-hour support and a cheaper price, visit our Linux virtual server purchase page and view our plans.
If you have any questions, ask us to answer them immediately.