- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Instances
Logging in to an instance
Logging in to a Linux instance
Using macOS to log in to a Linux instance
Logging in to a Linux instance
Using macOS to log in to a Linux instance
Using macOS to log in to a Linux instance
Applicable scenarios
This topic describes how to log in to a Linux ECS instance from a local host running macOS.
Prerequisites
- Make sure that the ECS instance you log in to meets the conditions in the Login restrictions.
Login steps
- Open the terminal on the local host.
- Run the following command to log in to the instance.
- Enter the login password that matches the Linux instance username, and then press Enter to log in to the Linux ECS instance.
- Open the terminal on the local host.
- Run the following command to make the private key file readable to 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 instance.
Last updated: 2026.06.18 16:22:21