You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Logging in to a Linux instance
Using macOS to log in to a Linux instance
Copy page
Download PDF
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.​
​
Local host OS​
ECS instance OS​
Local host login tool​
Login authentication method​
macOS​
Linux​
Built-in terminal (Terminal) of macOS - SSH command​
Password and key​
​
Prerequisites​
  • Make sure that the ECS instance you log in to meets the conditions in the Login restrictions.​
Login steps​
​
Password login
Key login
​
  1. Open the terminal on the local host.​
  1. Run the following command to log in to the instance.​
  • ​
    ssh <The username of the Linux ECS instance>@<The EIP address of the Linux ECS instance>​
    ​
  1. Enter the login password that matches the Linux instance username, and then press Enter to log in to the Linux ECS instance.​
​
​
Last updated: 2026.06.18 16:22:21