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ヶ月前426ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ