Cannot SSH to instance with AMI ami-04454150d004cb7a1

0

Hi folks,

I'm trying ECS with GPU, so I started with a p2.xlarge instance, and launched it with ami-04454150d004cb7a1, namely amzn2-ami-ecs-gpu-hvm-2.0.20230509-x86_64-ebs. However, I found that I could not SSH to it. Made sure the VPC security group is allowing all traffic. Tried p2.xlarge with other "normal" GPU-less ami and then was able to SSH. Could anyone confirm whether it's a problem with the AMI?

env: p2.xlarge EC2 machine, ami-04454150d004cb7a1, sg: allow all traffic, SSH user name: ec2-user.

Thanks!

1 réponse
0

If you are using Amazon Linux2, I think it is possible to connect using Systems Manager Session Manager, so one way is to grant the EC2 IAM role AmazonSSMMManagedInstanceCore and try to connect.

Since you were able to connect to other EC2, there may be a possibility that the SSH process is not started properly in the EC2.
Please check the EC2 logs to see if there might be any errors or other problems.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html

profile picture
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions