- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Instances
Logging in to an instance
Logging in to a Linux instance
Using the console to log in to a Linux instance
Logging in to a Linux instance
Using the console to log in to a Linux instance
Using the console to log in to a Linux instance
In the ECS console, you can log in to an instance that runs the Linux operating system through ECS Terminal or VNC.
Limits
The number of users that can remain logged in to an ECS instance varies based on the login method and user type. See details in the following table:
Prerequisites
Make sure that the ECS instance to log in meets the conditions in the Login restrictions. Login procedure
ECS Terminal (recommended)
VNC
tip
- Convenient interaction: You can directly copy or paste text when logging in to the instance with ECS Terminal. Therefore, we recommend you use ECS Terminal to enjoy a smooth user experience. ECS Terminal is applicable to scenarios where the instance is in the Running state and the operating system runs normally. If you use key for authentication, we recommend you use ECS Terminal for login.
- ECS Terminal offers multiple practical features, such as AI conversations, command completion, and error correction. For specific steps, refer toIntroduction to login tools.
- In the top menu bar, select the project and region of the target instance.
- Click "Connect" in the "Actions" column of the target instance.
- Click "Log in now" under ECS Terminal.
- On the remote login page, configure login information by referring to the table below.
- You can check "Save the log in information and log in credentials, and quickly log in next time.". Then, click "Login".
- After login, you enter the terminal command page. The response is as follows:
-
tip
- You cannot directly copy or paste text. Only commands that do not contain Chinese characters can be copied or pasted.
- You can log in to Running instances (including instances in the OS startup stage) or Stopped instances through VNC. This method is suitable for emergency O&M scenarios, allowing you to check the ECS status or perform maintenance tasks, such as enabing single-user mode.
- If the system detects no operation within 180 seconds after login with VNC, disconnection occurs.
- In the top menu bar, select the project and region of the target instance.
- Click the "Connect" button in the "Actions" column of the target instance.
- Click "Log in now" under VNC.
- Input the login user. The default user for Linux instances is root, or you can create a new user. Then, press the Enter key.
- Input the password to log in to the instance. Then, press the Enter key.
tip
- The login password is the password set when you create the instance. When you log in to a Linux instance, the interface does not display the password input process. Please ensure the password entered is correct.
- The response for successful login is as follows:
-
- Copy command: Click the clipboard button on the left, copy and paste the command into the clipboard box. Then click "Send" to copy the command to Linux.
Last updated: 2026.06.18 16:22:19