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
asked 10 months ago172 views
2 Answers
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
EXPERT
answered 10 months ago
profile pictureAWS
EXPERT
iBehr
reviewed 10 months ago
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
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions