Este conteúdo foi traduzido por máquina para sua conveniência e a Huawei Cloud não pode garantir que o conteúdo foi traduzido com precisão. Para exibir o conteúdo original, use o link no canto superior direito para mudar para a página em inglês.
Central de ajuda/ Elastic Cloud Server/ Perguntas frequentes/ File Upload/Data Transfer/ How Can I Use FTP to Transfer Files Between a Local Linux Computer and a Linux ECS?
Atualizado em 2025-01-23 GMT+08:00

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:

  • Um EIP foi vinculado ao ECS e o acesso à porta 21 é permitido na direção de entrada do grupo de segurança ao qual o ECS pertence.
  • Você ativou o FTP no ECS de destino. Se você não ativou o FTP, verifique os links a seguir para saber como configurar um site FTP:

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 Path in which files are stored on the local computer

      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 Path in which the files are stored on the ECS Path in which the files are to be stored on the local computer

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

      get /home/test.txt