cant ssh to a ec2 instance created by autoscaling group for a ecs

0

Hello,

i 'm using the default vpc/subnets/secrurity group to host ec2 of a ecs via an autoscaling group. the ssh key is ok. i even tried to generate a new key and sent it by this command

aws ec2-instance-connect send-ssh-public-key

it was successful. but still, I can't SSH to this instance via classic SSH command Enter image description here

via EC2 Instance Connect or EC2 Instance Connect Endpoint Enter image description here

this is a knowing issue ? is there any particular confs to enable ssh? thank you for your help

질문됨 한 달 전425회 조회
1개 답변
0

Hi,

There are several reasons why it can fail when trying to connect to an EC2 instance using Amazon EC2 Instance Connect, so I recommend you take a look at the following AWS Knowledge Center article, which not only describes the most common issues , but also how to resolve it.

profile picture
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

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

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

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

관련 콘텐츠