Ec2 connect issues

0

Already added ssh rules ...still getting this error.

Ec2 instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect.

Already done this lab many times, I think there is some issue with my account as from my friends account I am able to do

jai
asked 3 months ago162 views
3 Answers
0

Hello.

Have you met all the EC2 Instance Connect prerequisites listed in the document below?
The following document describes items that you should check in addition to security group rules.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html

profile picture
EXPERT
answered 3 months ago
  • I am using the default vpc & security group with ssh enabled ......ami is Amazon Linux 2 (ami-0c0b74d29acd0cd97) all the settings are ok as I had already check on another account too, getting issues only in my account

  • If you create another EC2, can you connect it?

0

you have to ssh using the downloaded .pem credential, throw the -i flag with ssh, followed by that which is specified ssh -i path/to/certificate.pem name@serverhost

profile picture
kader
answered 3 months ago
  • Already tried this but not able to ssh & also tried with another ec2 instance & also with putty by ppk file

0

Hi Jai,

Follow this post: https://repost.aws/knowledge-center/ec2-instance-connect-troubleshooting

It will help you find where your issue is.

2 key points usually

  1. make sure of the VPC in which this instance is started
  2. make sure that the ssh rule are placed in the sec group used by VPC

I see often folks a) having their instance in a different VPC than the one they tought or b) defining the ssh rules in a sec group that is not the one for their VPC

Best,

Didier

profile pictureAWS
EXPERT
answered 3 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