- 최신
- 최다 투표
- 가장 많은 댓글
Hello.
Is it possible to connect to EC2 using SSH etc?
Make sure your web server is up and running by connecting to EC2 if possible.
sudo systemctl status httpd
If the web server is not started, start it using the command below.
If the web server is not installed, please install it using the "yum" command or the OS package manager command.
sudo systemctl start httpd
sudo systemctl enable httpd
To SSH to EC2, you need to allow SSH in the inbound rules of the EC2 security group.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html
There are only few things that can go wrong in VPC side for this setup.
Check this,
1- EC2 has public ip?
2- Subnet in which EC2 is launched has default route 0.0.0.0/0 to IGW?
3- Inbound security group attached to EC2 has both http port 80 and https port 443 open from source 0.0.0.0/0 ?
4- Outbound security group attached to EC2 has all traffic allowed
What is public IP ?