I cannot figure out why I can't log into my ec2 instance. I've tried creating key pairs, uploading key pairs and nothing works

0

Unable to log into the instance

The link in the image is broken "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html" and I can't find help anywhere on what has changed on my end that I can't log into my instance.

This has been going on for over a week and all of my websites are down. I have companies dependent on running their services through us. Please help.

Update: Security seems ok

georgeb
已提问 10 个月前180 查看次数
2 回答
1

Hi, Instance connect is the right way to go to reconnect. Your situation most often happens on incorrect security group for access to your instance: you sec group MUST allow inbound ssh traffic (that's what Instance Connect uses). So you should have inbound trafic on port 22 allowed in the sec group of your instance.

It is all detailled here: https://repost.aws/knowledge-center/ec2-instance-connect-troubleshooting

Hope it helps! Didier

profile pictureAWS
专家
已回答 10 个月前
profile pictureAWS
专家
iBehr
已审核 10 个月前
0

Did you try to check the Inbound and outbound rules? Maybe you can provide more information regarding the network?

Also, you can check this doc to set up to connect to your instance https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connection-prereqs.html

Sonata
已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则