[英]Error when using EC2 Instance Connect in the instance was created from Cluster ECS
I want to connect to EC2 instance that I have created in ECS Cluster with EC2 Instance Connect but it always show same error.我想使用 EC2 Instance Connect 连接到我在 ECS 集群中创建的 EC2 实例,但它始终显示相同的错误。
There was a problem connecting to your instance
连接到您的实例时出现问题
Log in failed.
登录失败。 If this instance has just started up, wait a few minutes and try again.
如果此实例刚刚启动,请等待几分钟,然后重试。 Otherwise, ensure the instance is running on an AMI that supports EC2 Instance Connect.
否则,请确保实例在支持 EC2 Instance Connect 的 AMI 上运行。
My EC2 instance meet all the requirements to use EC2 Instance Connect (amzn2-ami-ecs-hvm-2.0.20210520-x86_64-ebs) and I have tried with or without SSH key pair assign to instance but all of them show the same error as above.我的 EC2 实例满足使用 EC2 Instance Connect (amzn2-ami-ecs-hvm-2.0.20210520-x86_64-ebs) 的所有要求,我尝试使用或不使用 SSH 密钥对分配给实例,但它们都显示相同的错误如上。
Anyone know why?有人知道为什么吗? Thanks for advance.
感谢您的提前。
I don't think EBS-optmized AMIs come with EC2 instance connect.我不认为 EBS 优化的 AMI 带有 EC2 实例连接。 You have to install it yourself after you establish traditional SSH connection to it, or through a user data:
您必须在与它建立传统的 SSH 连接后或通过用户数据自行安装:
sudo yum install ec2-instance-connect
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.