With a Security group I can't connect to EC2 instance

0

Hello, I have a security group which allows inbound traffic to port 22 from the world 0.0.0.0, then I created an EC2 instance with that security group attached but I can't connect to the instance, the instance of course has an external public IP (AWS assigned one inside 3.24x.x.x range) but I cant' connect, this instance is in eu-west-1 (Ireland), I don't even get a response using telnet on port 22 while trying to connect to it, however, if I create an EC2 instance with the same SG rules (different SG because it's different region but the same rules) in eu-west-3 (Paris) I can connect. I tried this many times with the same result, thank you for any help

질문됨 2년 전2280회 조회
1개 답변
1
수락된 답변

Hello,

The Security groups are just one of the factors needed to enable access. There are multiple other parameters like NACL's, Public IP, Routing etc that need to be verified between the 2 environments before reaching to a conclusion. Have you checked the routing that is set ?

Assuming, you are trying to access the same from On-Premise over the internet, did you verify if Internet gateway is attached to the routing in the EC2 instance. Please verify the same or provide more information on how is the routing set up.

Link- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html

profile pictureAWS
지원 엔지니어
답변함 2년 전
profile pictureAWS
전문가
Toni_S
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠