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 回答
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
专家
已回答 1 年前

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

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

回答问题的准则