- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Instances
Logging in to an instance
Logging in to a Linux instance
Using a Windows host to log in to a Linux instance
Logging in to a Linux instance
Using a Windows host to log in to a Linux instance
Using a Windows host to log in to a Linux instance
Applicable scenarios
This topic describes how to log in to a Linux ECS instance from a Windows host.
Prerequisites
- Make sure that the ECS instance you log in to meets the conditions in the Login restrictions.
Password login procedure
- On the local host, click "Start" and open the "Command Prompt" terminal.
- Enter the following SSH command.
- Input the password of the root user and press the Enter key to log in to the Linux ECS instance.
- Access PuTTY with the browser on your local host, and then download and install it.
- Double-click the putty64.exe file and configure the following parameters.
-
- Click "Open" to open the PuTTY terminal window. Follow the prompts to enter "root" and the password of the root user. Then, you can log in to the Linux ECS instance.
-
Password login procedure
- On the local host, click "Start" and open the "Command Prompt" terminal.
- Run the following commands in sequence to make the private key file readable to the current logged-in user.
- Run the following command to log in to the instance.
- Press the Enter key to log in to the instance.
- Access PuTTY and PuTTYgen with the browser on your local host, and then download and install them.
- Double-click the puttygen.exe file.
- Select "Type of key to generate > RSA". Then, click "Load".
-
- Select "All Files", and then select the target private key file. Then click "Open".
-
- In the confirmation dialog box that pops up, click "OK", and then select "Save private key" in the following figure.
-
- In the confirmation dialog box that pops up, click "Yes".
- Specify a name for the .ppk file, and click "Save".
- Double-click the putty64.exe file.
- In the left-side navigation pane, select "Connection > SSH > Auth". In the right-side pane, click "Browse".
-
- Select the .ppk private key file and then click "Open".
- In the left-side navigation pane, click "Session" and configure the following parameters.
-
- Click "Open" to go to the run page of "PuTTY". Follow the prompts to enter "root". Then, the system automatically identifies the private key. After this, you can log in to the Linux ECS instance.
-
Last updated: 2026.06.18 16:22:21