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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南