Login Using an SSH Password

Scenarios

This section describes how to remotely log in to a Linux ECS using an SSH password from Windows and Linux, respectively.

Prerequisites

  • The target ECS is running.
  • You have bound an EIP to the ECS. For details, see Binding an EIP.
  • Access to port 22 is allowed in the inbound direction of the security group to which the ECS belongs. For details, see Configuring Security Group Rules.
  • The network connection between the login tool (PuTTY) and the target ECS is normal. For example, the default port 22 is not blocked by the firewall.

Logging In to the Linux ECS from Local Windows

To log in to the Linux ECS from local Windows, perform the operations described in this section.

The following operations use PuTTY as an example to log in to the ECS.

  1. Visit the following website and download PuTTY and PuTTYgen:

    https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

  2. Run PuTTY.
  3. Click Session.
    1. Host Name (or IP address): EIP bound to the ECS
    2. Port: 22
    3. Connection type: SSH
    4. Saved Sessions: Task name, which can be clicked for remote connection when you use PuTTY next time
      Figure 1 Session
  4. Click Window. Then, select UTF-8 for Received data assumed to be in which character set: in Translation.
  5. Click Open.

    If you log in to the ECS for the first time, PuTTY displays a security warning dialog box, asking you whether to accept the ECS security certificate. Click Yes to save the certificate to your local registry.

  6. After the SSH connection to the ECS is set up, enter the username and password as prompted to log in to the ECS.
    The username and password for the first login to the ECS created using a public image (including CoreOS) are as follows:
    • Username: root
    • Password: the one you set when you purchased the ECS

Logging In to the Linux ECS from Local Linux

To log in to the Linux ECS from local Linux, run the following command: ssh EIP bound to the ECS