Logging In to a Linux ECS from a macOS Computer
Scenario
This section describes how to log in to a Linux ECS from a macOS computer.
Prerequisites
- The target ECS is running.
- You have obtained the username and password for logging in to the ECS.
- You have bound an EIP to the ECS. For details, see Binding an EIP.
- The security group to which the ECS belongs allows inbound traffic on port 3389. For details, see Configuring Security Group Rules.
Procedure
You can log in to the Linux ECS through the terminal included in the macOS.
- Using an SSH password
- Open the terminal of the macOS and run the following command to log in to the ECS:
ssh Username@EIP
- Open the terminal of the macOS and run the following command to log in to the ECS:
- Using an SSH key
- Open the terminal of the macOS and run the following command to change permissions. The following operations use private key file kp-123.pem as an example. The name of your private key file may differ.
chmod 400 /path/kp-123.pem
In the preceding command, path refers to the path where the key file is saved.
- Run the following command to log in to the ECS:
ssh -i /path/kp-123.pem Username@EIP
- The username is core for a CoreOS public image.
- The username is root for a non-CoreOS public image.
- Open the terminal of the macOS and run the following command to change permissions. The following operations use private key file kp-123.pem as an example. The name of your private key file may differ.
Follow-up Procedure
- After logging in to the ECS using the SSH key, you can set a password (by using the passwd command) to log in to the ECS using VNC.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot