Files
doc-exports/docs/ecs/umn/en-us_topic_0263806054.html
wanghuijuan738 e21aa18fe1 ECS UMN 20260304 version. Updated the x1 and x1e specifications.
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com>
Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
2026-03-27 13:57:13 +00:00

4.8 KiB

How Can I Use FTP to Transfer Files Between a Local Linux Computer and a Linux ECS?

Scenarios

You want to use FTP on a local Linux computer to transfer files between the computer and a Linux ECS.

Prerequisites

You have enabled FTP on the target ECS. If you have not enabled FTP, check the following links to know how to set up an FTP site:

  • An EIP has been bound to the ECS and access to TCP port 21 is allowed in the inbound direction of the security group to which the ECS belongs.
  • You have enabled FTP on the target ECS. If you have not enabled FTP, check the following links to know how to set up an FTP site:

Procedure

  1. Install FTP on the local Linux computer.

    Take CentOS 7.6 as an example. Run the following command to install FTP:

    yum -y install ftp

  2. Run the following command to access the ECS:

    ftp EIP bound to the ECS

    Enter the username and password as prompted for login.
    • Uploading files

      Run the following command to upload local files to the ECS:

      put local-computer-file-path

      For example, to upload the /home/test.txt file on the local Linux computer to the ECS, run the following command:

      put /home/test.txt

    • Downloading files

      Run the following command to download files on the ECS to the local computer:

      get <ECS-file-path> <local-computer-file-path>

      For example, to download the test.txt file on the ECS to the local Linux computer, run the following command:

      get /home/test.txt