Updated on 2025-12-25 GMT+08:00

Logging In to a Linux FlexusL Instance Using CloudShell

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. When you use CloudShell, CloudShell communicates with your cloud servers through the CloudShell proxy IP address. Your real IP address will be hidden to improve your privacy and cloud server security.

This section describes how to log in to a FlexusL instance using CloudShell.

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.

Procedure

  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 the CloudShell Login area.
  4. On the CloudShell page, configure information required for logging in to the FlexusL instance server.

    When you log in for the first time, the CloudShell configuration wizard is displayed by default. Enter the parameters required for logging in to the cloud server.

    Retain the default values of Region and ECS. Select either the EIP or the private IP address to log in.

  5. Click Connect.

    If a message is displayed indicating that the authentication fails, the possible cause is that the login password is not set or incorrect. Reset the password and try again.

    After the connection is successful, a figure similar to the following is displayed:
    Figure 7 Successful login