- Virtual Private Cloud
- Elastic Load Balance
- Domain Name Service
- NAT Gateway
- Virtual Private Network
- Simple Message Notification
- Purchase Guide
- ECS Types and Specifications
- Accessing and Using ECSs
- Purchasing an ECS
- Creating a HANA ECS
Logging In to an ECS
- Login Mode Overview
- Logging In to an ECS Using VNC
- Logging In to a Linux ECS Using a Key Pair (SSH)
- Logging In to a Linux ECS Using a Password (SSH)
- Logging In to a Windows ECS Using a Password (MSTSC)
- Configuring Security Group Rules
- Obtaining the Password for Logging In to a Windows ECS
- Deleting the Initial Password for Logging In to a Windows ECS
- (Optional) Initializing EVS Data Disks
- (Optional) Installing One-Click Password Reset Plugins
- (Optional) Configuring Mapping Between Host Names and IP Addresses
- ECS Features
- Viewing ECS Creation Status
- Exporting ECSs
- Managing the LifeCycle of an ECS
- Modifying Basic ECS Configurations
- Resetting the Password for Logging In to an ECS
- Changing the Time Zone for an ECS
- Monitoring ECSs
- Managing ECS OSs
- Expanding the Local Disks of a Disk-intensive ECS
- Having an ECS Without a Public IP Address Access the Internet
- Detaching an EVS Disk from a Running ECS
- Managing ECS Metadata
- Enabling Multiple NIC Queuing
- API Calling
- Common Message Headers
- Lifecycle Management
- ECS Status Management
- Specifications Query
- NIC Management
- Disk Management
- Metadata Management
- Tenant Quota Management
- SSH Key Management
- Querying the Task Status
- FPGA Logical File Management
- Change History
- Document Download
Logging In to a Linux ECS Using a Key Pair (SSH)
- You have obtained the ECS key file.
- You have bound an EIP to the ECS. For details, see section Viewing ECS Details.
- You have configured the inbound rules of the security group. For details, see section 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 a Windows Computer
To log in to the Linux ECS from a Windows computer, perform the operations described in this section.
Method 1: Use PuTTY to log in to the ECS.
- Check whether the private key file has been converted to .ppk format.
- Visit the following website and download PuTTY and PuTTYgen:NOTE:
PuTTYgen is a private key generator, which is used to create a key pair that consists of a public key and a private key for PuTTY.
- Run PuTTYgen.
- In the Actions area, click Load and import the private key file that you stored when creating the ECS.
Ensure that the private key file is in the format of All files (*.*).
- Click Save private key.
- Save the converted private key, for example, kp-123.ppk, to the local computer.
- Double-click PUTTY.EXE. The PuTTY Configuration page is displayed.
- Choose Connection > Data. Enter the image username in Auto-login username.
- Choose Connection > SSH > Auth. In the last configuration item Private key file for authentication, click Browse and select the private key converted in step 6.
- Choose Session and enter the EIP of the ECS under Host Name (or IP address).
Figure 1 Configuring the EIP
- Click Open.
You have logged in to the ECS.
Method 2: Use Xshell to log in to the ECS.
- Start the Xshell tool.
- Run the following command using the EIP to remotely log in to the ECS through SSH:
An example is provided as follows:
- (Optional) If the system displays the SSH Security Warning dialog box, click Accept & Save.
- Select Public Key and click Browse beside the user key text box.
- In the user key dialog box, click Import.
- Select the locally stored key file and click Open.
- Click OK to log in to the ECS.
Logging In to the Linux ECS from a Linux Computer
- On the Linux CLI, run the following command to change operation permissions:
chmod 400 /path/kp-123NOTE:
In the preceding command, path refers to the path where the key file is saved.
- Run the following command to log in to the ECS:
ssh -i /path/kp-123 Default username@EIP
For example, if the default username is linux, run the following command:
ssh -i /path/kp-123 linux@EIPNOTE:
In the preceding command:
- path is the path where the key file is saved.
- EIP refers to the EIP bound to the ECS.