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

gefragt vor einem Monat426 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen