Updated on 2026-09-14 GMT+08:00

Using CloudShell to Transfer Files to a Linux Cloud Server

Scenarios

CloudShell is an online interactive terminal service available on the Huawei Cloud console. It allows you to access and manage Huawei Cloud resources using a browser without installing local tools. CloudShell communicates with cloud servers through the CloudShell proxy IP address. This hides your real IP address to improve your privacy and cloud server security.

After logging in to a Linux FlexusL instance using CloudShell, you can manage files directly from the CloudShell console, including uploading and downloading files. This section describes how to use Huawei Cloud CloudShell to transfer files between your local computer and a Linux cloud server (Linux FlexusL instance).

Prerequisites

  • The status of the FlexusL instance must be Running.
  • You have obtained the password for logging in to the cloud server. A FlexusL instance does not have an initial password. If you log in to a FlexusL instance for the first time or forget the password, obtain the password by referring to Resetting the Password for a FlexusL Instance.
  • Ensure that the external traffic from the CloudShell proxy server (SSH default port: 22) is allowed in the security group. Otherwise, the cloud server cannot be connected. The CloudShell proxy IP address varies depending on the region. The actual proxy IP address will be displayed on the CloudShell configuration page. For details about how to configure security group rules, see Configuring Security Group Rules for a FlexusL Instance.

    If you want to use other ports, log in to the cloud server and change the port number. For details, see How Can I Change a Remote Login Port?

  • You can use CloudShell to connect to the cloud server through a public or private network. When you choose to connect through a private network, service authorization is required.
    • If the Service authorization page is displayed, it means you have the Security Administrator permissions. Click Agree.
      The service authorization takes effect at the region level and is required only when you use CloudShell for the first time in a specific region.
      Figure 1 Service authorization
    • If you do not have the Security Administrator permissions, a page will be displayed, requiring you to contact the administrator (or users with admin permissions) to assign permissions to you.

      Perform the following steps to assign permissions:

      1. Create a user group and assign the Security Administrator permissions to the user group. For details, see Creating a User Group and Assigning Permissions.
      2. Add the user to the user group. For details, see Adding Users to a User Group.

      When you use CloudShell to remotely connect to an ECS through a public network, service authorization is not required.

Uploading Files

To transfer local files to a Linux cloud server, do as follows:

  1. Log in to the FlexusL console.

    By default, FlexusL instances are displayed in the card view. You can also click to switch to the list view.

  2. Log in to a cloud server using any of the following methods:

  3. In the displayed dialog box, click Log In via CloudShell in CloudShell Login.

    For details, see Logging In to a Linux FlexusL Instance Using CloudShell.

  4. Upload local files to the cloud server.

    In the file tree on the left of the CloudShell interface, right-click the target directory, for example, srv, and choose Upload Files from the shortcut menu to upload the files to the target directory.

  5. Verify the result.

    If the uploaded files exist in the target directory, the upload is successful. You can download, delete, duplicate, and rename the uploaded files.

Downloading Files

To transfer files from a Linux cloud server to a local computer, do as follows:

  1. Log in to the FlexusL console.

    By default, FlexusL instances are displayed in the card view. You can also click to switch to the list view.

  2. Log in to a cloud server using any of the following methods:

  3. In the displayed dialog box, click Log In via CloudShell in CloudShell Login.

    For details, see Logging In to a Linux FlexusL Instance Using CloudShell.

  4. Download files to the local computer.

    In the file tree on the left of the CloudShell interface, right-click the file to be downloaded, for example, workspace.zip, and choose Download from the shortcut menu to download the file from the Linux cloud server to your local computer. Then, the browser automatically initiates a download task. You can view the download progress in the browser's download manager.

  5. Verify the result.

    In the target directory on your local computer, check whether the downloaded file exists and whether the file size is the same as that on the cloud server.