This section describes how to remotely log in to a Linux ECS using an SSH key pair from a Windows and a Linux server, respectively.
To log in to the Linux ECS from local Windows, perform the operations described in this section.
Method 1: Use PuTTY to log in to the ECS.
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
PuTTYgen is a key generator, which is used to create a key pair that consists of a public key and a private key for PuTTY.
Ensure that the format of All files (*.*) is selected.
Log in to the ECS.
Method 2: Use Xshell to log in to the ECS.
ssh Username@EIP
In the preceding command, path refers to the path where the key file is saved.
ssh -i /path/kp-123.pem Default username@EIP
For example, if the default username is root and the EIP is 123.123.123.123, run the following command:
ssh -i /path/kp-123.pem root@123.123.123.123
In the preceding command: