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
已提问 4 个月前173 查看次数
3 回答
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
专家
已回答 4 个月前
  • 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
已回答 4 个月前
  • 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
专家
已回答 4 个月前

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

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

回答问题的准则