Logging In to a Linux ECS Using an SSH Key
Prerequisites
- You have obtained the key file of the ECS. For details about how to obtain the key file, see Obtaining the Key File of an ECS.
- An elastic IP address has been bound to the ECS.
- You have configured the inbound rules of the security group.
Logging In to the Linux ECS from a Windows Computer
This section describes how to log in to the Linux ECS from a Windows computer.
- Visit the following website and download PuTTY and PuTTYgen:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
PuTTYgen is a private key generator, which is used to create an SSH 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 stored during HANA ECS creation.
The file to be imported must be in the format of "All files (*.*)".
- Click Save private key.
- Save the converted private key to the local computer. For example, kp-123.ppk.
- Run PuTTY.
- Choose Connection > data and enter :root 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 5.
- Click Session and enter the elastic IP address of the ECS under Host Name (or IP address).
- Click Open.
The ECS is logged in.
Logging In to the Linux ECS from a Linux Computer
- On the Linux CLI, run the following command to change the permission:
In the preceding command, path specifies where the private key file is saved.
- Run the following command to log in to the ECS:
ssh -i /path/kp-123 root@Elastic IP address
- In the preceding command, path specifies where the private key file is saved.
- Elastic IP address is the elastic IP address bound to the ECS.
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