Platform | Introduced in | Description |
---|---|---|
EC2-Classic | The original release of Amazon EC2 | Your instances run in a single, flat network that you share with other customers. |
EC2-VPC | The original release of Amazon VPC | Your instances run in a virtual private cloud (VPC) that's logically isolated to your AWS account. |
* What is the difference between EC2-Classic and EC2-VPC?
* AWS VPC 心得
結論, 選 EC2-VPC
---
剛設完如果沒有 public DNS, 就參考這篇吧
* EC2 instance has no public DNS
---
之後用 ssh 測試可能會連不上, 第一個先修改 security group 的 inbound rules, 將 source 放寬看有沒有改善
然後用 ssh 連可能會失敗, 記得要修改 pem 的權限像這樣
instance:
- Open an SSH client. (find out how to connect using PuTTY)
- Locate your private key file (ricelee.pem). The wizard automatically detects the key you used to launch the instance.
- Your key must not be publicly viewable for SSH to work. Use this command if needed:
chmod 400 foo.pem
- Connect to your instance using its Public DNS:
ec2-1-2-3-4.ap-northeast-1.compute.amazonaws.com
Example:
ssh -i "foo.pem" ubuntu@ec2-1-2-3-4.ap-northeast-1.compute.amazonaws.comPlease note that in most cases the username above will be correct, however please ensure that you read your AMI usage instructions to ensure that the AMI owner has not changed the default AMI username.
沒有留言:
張貼留言