简体   繁体   English

Amazon Instance Ec2连接超时

[英]Amazon Instance Ec2 Connection Timeout

I am using Amazon EC2 services & and its working correctly but suddenly from 3-days before when we try to access our instance using ssh connection we got following error: 我正在使用Amazon EC2服务及其正常工作,但是突然三天后,当我们尝试使用ssh连接访问实例时,出现以下错误:

"ssh: connect to host ec2- - “SSH:连接到主机ec2- - - -***.compute-1.amazonaws.com port **: Connection timed out" -- ***。compute-1.amazonaws.com端口**:连接超时”

when I try to access our sites deployed on our EC2 instance, I received the same error , 当我尝试访问部署在EC2实例上的站点时,收到了相同的错误,

"The connection has timed out The server at ec2- - “连接已在ec2-服务器超时- - -***.compute-1.amazonaws.com is taking too long to respond" -- ***。compute-1.amazonaws.com响应时间过长”

there is no problem in network connection from our side as we are able to access other web site and services smoothly. 由于我们能够顺利访问其他网站和服务,因此从我们这边进行网络连接没有问题。

I can't even able to access hosted site without this. 没有这个,我什至无法访问托管站点。

您可以尝试访问系统控制台(通过amazon Web控制台或elasticfox),并检查是否有任何错误/消息可以帮助您找到原因。

I encountered the same problem. 我遇到了同样的问题。

I followed the troubleshooting in http://alestic.com/2010/05/ec2-move-ebs-boot-instance Then when I tried to start a new instance, I got an message from Amazon: 我在http://alestic.com/2010/05/ec2-move-ebs-boot-instance中进行了故障排除,然后,当我尝试启动新实例时,我从亚马逊收到了一条消息:

Server.InsufficientInstanceCapacity: We currently do not have sufficient m1.small capacity in the Availability Zone you requested (us-east-1b). Server.InsufficientInstanceCapacity:我们当前在您请求的可用区中没有足够的m1.small容量(us-east-1b)。 Our system will be working on provisioning additional capacity. 我们的系统将致力于提供更多容量。 You can currently get m1.small capacity by not specifying an Availability Zone in your request or choosing us-east-1d, us-east-1c, us-east-1a. 当前,您可以通过在请求中不指定可用区或选择us-east-1d,us-east-1c,us-east-1a来获得m1.small容量。

Maybe, you have an instance is us-east-1b, too. 也许您也有一个实例是us-east-1b。

In ~/.ssh/config , add the following lines: ~/.ssh/config ,添加以下行:

ServerAliveInterval 50

This will keep on pinging the server every 50 seconds to keep the connection alive. 这将继续每隔50秒对服务器执行一次ping操作,以保持连接状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM