This section describes how to use an SSH key pair to remotely log in to a Linux ECS from a Windows and a Linux server, respectively.
You have two methods to log in to a Linux ECS from a local Windows server.
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.
Method 2: Use Xshell to log in to the ECS.
ssh Username@EIP
In the preceding command, replace path with the actual 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: