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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠