- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Instances
Logging in to an instance
Logging in to a Linux instance
Logging in to a Linux instance on a Linux host
Logging in to a Linux instance
Logging in to a Linux instance on a Linux host
Logging in to a Linux instance on a Linux host
Applicable scenarios
This topic describes how to log in to a Linux ECS instance when your local host runs a Linux operating system.
Prerequisites
- Make sure that the ECS instance you log to in meets the conditions in the Login restrictions.
Login procedure
- Run the following SSH command.
- Enter the login password that matches the Linux instance username, and then press Enter to log in to the Linux ECS instance.
- Run the following command to make the private key file readable by the currently logged-in user.
- Run the following command to log in to the ECS instance.
- Press the Enter key to log in to the ECS instance.
Last updated: 2026.06.18 16:22:21