If you’re unable to connect via SSH to your EC2 instance, which of the following should you check and possibly
correct to restore connectivity?
A.
Adjust Security Group to permit egress traffic over TCP port 443 from your IP.
B.
Configure the IAM role to permit changes to security group settings.
C.
Modify the instance security group to allow ingress of ICMP packets from your IP.
D.
Adjust the instance’s Security Group to permit ingress traffic over port 22 from your IP.
E.
Apply the most recently released Operating System security patches.
d
In a VPC everything is allowed out by default. So I choose D.
I choose D
D is correct (for those that are not familiar. Ingress means incoming, egress means outgoing)
thanks wetrain
Thank you for that
Has anyone taken exam recently?
D is the correct answers
D
D
D
http://docs.aws.amazon.com/cli/latest/reference/ec2/authorize-security-group-ingress.html
[EC2-VPC] To add a rule that allows inbound SSH traffic
This example enables inbound traffic on TCP port 22 (SSH). Note that you can’t reference a security group for EC2-VPC by name. If the command succeeds, no output is returned.
Command:
aws ec2 authorize-security-group-ingress –group-id sg-903004f8 –protocol tcp –port 22 –cidr 203.0.113.0/24