[英]How to access AWS EC2 instance from web browser on Linux machine?
When I try to connect to my EC2 instance using web browser (Mozilla Firefox) using the third option in the connect (EC2 Instance Connect (browser-based SSH connection) ), I get the following error in the new pop-up window:当我尝试使用连接中的第三个选项(EC2 Instance Connect (browser-based SSH connection))使用 web 浏览器(Mozilla Firefox)连接到我的 EC2 实例时,我在新的弹出窗口中收到以下错误 Z045B8C742CBD902FFBF23
There was a problem setting up the instance connection
设置实例连接时出现问题
Log in failed.登录失败。 If this instance has just started up, try again in a minute or two.
如果此实例刚刚启动,请在一两分钟后重试。
Some things to check:需要检查的一些事项:
Amazon Linux 2
or Ubuntu 16.04 or later
Amazon Linux 2
或Ubuntu 16.04 or later
启动的0.0.0.0/0
) (which is a very poor choice for security) or from the IP address ranges for EC2 Instance Connect (See: AWS IP Address Ranges - AWS General Reference ) 0.0.0.0/0
) (which is a very poor choice for security) or from the IP address ranges for EC2 Instance Connect (See: AWS IP Address Ranges - AWS 一般参考) EC2 Instance Connect in your browser establishes a web connection to the AWS service.浏览器中的 EC2 Instance Connect 与 AWS 服务建立 web 连接。 Then, the SSH connection is established from the AWS Service to the Amazon EC2 instance.
然后,建立从 AWS 服务到 Amazon EC2 实例的 SSH 连接。 This is why the security group needs to allow incoming connections from the IP address range associated with the EC2 Instance Connect Service (not your own IP address).
这就是为什么安全组需要允许来自与 EC2 实例连接服务关联的 IP 地址范围的传入连接(不是您自己的 IP 地址)。
Alternative ways to connect are:替代的连接方式是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.