Login Using CloudShell

Scenarios

This section describes how to use CloudShell provided on the management console to log in to an ECS.

For instructions about how to copy and paste data on CloudShell pages after the ECS login, see Common CloudShell Operations.

Prerequisites

  • The ECS is running.
  • If a different port number is required, you have used the default port to log in to the ECS and changed the port number.

    For instructions about how to change a remote login port, see How Can I Change a Remote Login Port? For instructions about how to configure security group rules, see Configuring Security Group Rules.

  • The target ECS has had an EIP bound.
  • The password for logging in to the target ECS has been set. If you did not set a password when creating the ECS, reset the password before logging in to the ECS.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Under Computing, click Elastic Cloud Server.
  4. In the Operation column of the target ECS, click Remote Login.
  5. In the Logging In to a Linux ECS dialog box, click Log In in CloudShell-based Login.
  6. On the CloudShell page, configure the ECS information.

    Upon the first login, the CloudShell configuration wizard is displayed by default. In the CloudShell configuration wizard, enter the EIP, port number (22 by default), username, and password.

    If the system does not respond, the login password is incorrect or the password has not been set. In such a case, reset the password and attempt to log in to the ECS again.

  7. Verify that the login is successful, as shown in the following figure.

Common CloudShell Operations

  • Keyboard shortcuts
    Use keyboard shortcuts to edit commands.
    Table 1 Keyboard shortcuts for CloudShell

    Shortcut

    Action

    Ctrl+L

    Moves the current line to the first line.

    Ctrl+U

    Clear the current line.

    Ctrl+H

    Delete one character forward.

    Ctrl+A

    Move the cursor to the beginning of the command line.

    Ctrl+E

    Move the cursor to the end of the command line.

  • Copy & Paste

    Data can be copy-pasted across local and remote terminals by right-clicking the target file and choosing Copy and Paste, or using keyboard shortcuts Ctrl+C and Ctrl+V.

  • Historical records

    Scroll up or down the terminal to view historical records. By default, only the latest 1000 lines of historical records are retained for terminals. This value is changeable.

  • Customized layout for multiple terminals

    You can create multiple CloudShell terminals on the same page and drag panes to customize the layout.