Bird
0
0

A security group has an inbound rule allowing TCP port 22 from 203.0.113.0/24. A user from IP 203.0.114.5 cannot SSH into the instance. What is the most likely reason?

medium📝 Debug Q7 of 15
AWS - Security Groups and Network ACLs
A security group has an inbound rule allowing TCP port 22 from 203.0.113.0/24. A user from IP 203.0.114.5 cannot SSH into the instance. What is the most likely reason?
AThe user's IP is outside the allowed CIDR range
BPort 22 is blocked by AWS firewall
COutbound rules are missing
DSecurity groups do not control SSH access
Step-by-Step Solution
Solution:
  1. Step 1: Check CIDR range in inbound rule

    The rule allows IPs from 203.0.113.0 to 203.0.113.255 only.
  2. Step 2: Compare user's IP

    User IP 203.0.114.5 is outside the allowed range, so connection is blocked.
  3. Final Answer:

    The user's IP is outside the allowed CIDR range -> Option A
  4. Quick Check:

    IP outside CIDR = blocked [OK]
Quick Trick: CIDR must include user IP to allow access [OK]
Common Mistakes:
MISTAKES
  • Assuming AWS blocks port 22 by default
  • Ignoring outbound rules impact
  • Thinking security groups don't control SSH

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes