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

已提問 1 個月前檢視次數 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
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南