Using CloudShell to Transfer Files to a Linux FlexusX Instance
Scenarios
CloudShell is an online interactive terminal service available on the Huawei Cloud console. It allows you to access and manage Huawei Cloud resources directly from 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 FlexusX 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 FlexusX instance).
Prerequisites
- The FlexusX instance for login is in the Running state.
- You have obtained the login username and password. If you have forgotten the password, reset it by following Resetting the Password for a FlexusX Instance.
The username created from a Linux public image is root.
- Ensure that the remote port (default SSH port: 22) of the CloudShell proxy IP address is allowed in the security group. Otherwise, the FlexusX instance 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 FlexusX Instance.
If a different port is required, you can use the default port to log in to the FlexusX instance and then change the port No. For details about how to change a remote login port, see How Can I Change a Remote Login Port?
- An EIP has been bound to the FlexusX instance.
- You can use CloudShell to connect to a FlexusX instance 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:
- Create a user group and assign the Security Administrator permissions to the user group. For details, see Creating a User Group and Assigning Permissions.
- 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.
- If the Service authorization page is displayed, it means you have the Security Administrator permissions. Click Agree.
Uploading Files
To transfer local files to a Linux cloud server, do as follows:
- Log in to the FlexusX console. In the upper left corner, click
and select a region. - Locate the FlexusX instance you want to log in to, click Remote Login in the Operation column.
- In the displayed dialog box, click Log In in CloudShell-based Login.
For more information, see Logging In to a Linux FlexusX Instance Using CloudShell.
- 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.

- 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:
- Log in to the FlexusX console. In the upper left corner, click
and select a region. - Locate the FlexusX instance you want to log in to, click Remote Login in the Operation column.
- In the displayed dialog box, click Log In in CloudShell-based Login.
For more information, see Logging In to a Linux FlexusX Instance Using CloudShell.
- 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.

- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot