how to log in ec2 on aws
时间: 2024-05-06 10:21:13 浏览: 154
To log in to EC2 on AWS, you can use SSH to securely connect to your instance. First, you'll need to retrieve the instance's public DNS name or IP address. Then, open a terminal and enter the following command:
```
ssh -i /path/to/your/key.pem ec2-user@public-dns-name
```
Replace "/path/to/your/key.pem" with the path to your private key, and "public-dns-name" with your instance's public DNS name or IP address.
阅读全文