在从集群 ECS 创建的实例中使用 EC2 Instance Connect 时出错
我想使用 EC2 Instance Connect 连接到我在 ECS 集群中创建的 EC2 实例,但它始终显示相同的错误。
连接到您的实例时出现问题
登录失败。如果该实例刚刚启动,请等待几分钟然后重试。否则,请确保实例在支持 EC2 Instance Connect 的 AMI 上运行。
我的 EC2 实例满足使用 EC2 Instance Connect (amzn2-ami-ecs-hvm-2.0.20210520-x86_64-ebs) 的所有要求,并且我尝试过使用或不使用 SSH 密钥对分配给实例,但它们都显示相同的错误如上所述。
有人知道为什么吗?感谢您的提前。
I want to connect to EC2 instance that I have created in ECS Cluster with EC2 Instance Connect but it always show same error.
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.
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.
Anyone know why? Thanks for advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为 EBS 优化的 AMI 附带 EC2 实例连接。您必须 在建立传统的 SSH 连接后自行安装,或者通过用户数据安装:
I don't think EBS-optmized AMIs come with EC2 instance connect. You have to install it yourself after you establish traditional SSH connection to it, or through a user data: