How to Transfer Files from the Local Machine to the Remote Server

November 3, 2022 / Servers, Hosting & Email

In this article, we have explained how to transfer files from the local machine to the remote server.

Follow the steps:

  1. To transfer files “get” command is used. Its syntax is :
    get file.txt /RemoteDirectory
  2. To download the files from the local machine to the remote server is as follows:
    get file.txt /RemoteDirectory
  3. Enter the following command to move the “example.txt” file from a local machine to a remote machine:
    put /home/user-name/example.txt /root
  4. The file can now be found in the root directory of the remote server.
  5. Using the “mput” command, you can also transfer multiple files. The method is nearly identical to “mget”:
    mput /home/user-name/*.txt /root
  6. The above command moves all the “.txt” extension files in the “/home/user-name” from the local machine to the remote server’s directory.

That’s it! Hope you liked our article. This way one can transfer files from the local machine to the remote server.

Spread the love