我启动了一个新的Amazon Linux 2实例。我尝试通过管理控制台中EC2 -> EC2 Instance Connect (browser-based SSH connection)选项下的Connect实例连接选项连接到该实例。我得到了错误:
There was a problem setting up the instance connection
An internal error has occurred within the remote server, and the connection has been terminated.
If this instance has just started up, try again in a minute or two.SSH端口对世界开放(0.0.0.0/0)。我可以使用通过本地机器终端配置的SSH键连接到EC2实例,但从浏览器连接实例不起作用。
发布于 2020-03-18 09:21:25
为了使用“AMI instance connect (基于浏览器的SSH连接)”连接到您的实例,您需要将ec2- Instance -connect安装到您的EC2。
尝试通过“独立SSH客户端”连接到您的实例(例如,putty)并使用命令安装它:
sudo yum install ec2-instance-connect或者(对于Ubuntu):
sudo apt-get install ec2-instance-connect 对我来说,这很有效,下次我就可以通过浏览器轻松地访问我的实例了。
更详细的解释可以在这里找到:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html
发布于 2020-01-12 17:33:15
几乎每次我尝试通过浏览器使用EC2的SSH都没有成功,大概有1-2次,试着在终端上做
发布于 2020-06-18 19:24:20
确保AMI是Amazon Linux 2类型,因为它与必要的软件捆绑在一起。最近在AMI选择窗口中有一个变化,Ubuntu是预先选择的。
https://stackoverflow.com/questions/59701689
复制相似问题