无法访问Amazon EC2实例 [英] Can't access to amazon ec2 instance

查看:431
本文介绍了无法访问Amazon EC2实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SSH终端无法访问到Amazon EC2实例:

I can't access to amazon ec2 instance using ssh terminal:


ssh -i new.pem ubuntu@<public-ip>

报告说,连接被关闭&LT;公共IP>

It says connection closed by <public ip>

和FileZilla中停止工作,我收到此错误:

and FileZilla stopped working and I am getting this error:

错误:服务器意外关闭网络连接
  错误:无法连接到服务器

Error: Server unexpectedly closed network connection
Error: Could not connect to server

这之后,我改变了服务器的的/ etc 文件夹的权限775更新所有发生的事情的的php.ini 的文件。

This all happened after I changed the server's /etc folder's permissions to 775 to update the php.ini file.

发生了什么事?

推荐答案

听起来像你的情况可能是继权限更改大清洗。

Sounds like your instance may be hosed following the permission changes.

看看这个问题:<一href="http://serverfault.com/questions/364677/why-is-chmod-r-777-destructive">http://serverfault.com/questions/364677/why-is-chmod-r-777-destructive它描述了类似的情况。

Take a look at this question: http://serverfault.com/questions/364677/why-is-chmod-r-777-destructive which describes a similar situation.

和一起来看看这个潜在的分辨率:<一href="http://serverfault.com/questions/234061/re-gaining-root-access-to-an-ec2-ebs-boot-image">http://serverfault.com/questions/234061/re-gaining-root-access-to-an-ec2-ebs-boot-image

And a look at this potential resolution: http://serverfault.com/questions/234061/re-gaining-root-access-to-an-ec2-ebs-boot-image

从来没有这种事发生在我,所以没有亲自使用的回收技术。

Never had this happen to me so not personally used the recovery technique.

祝你好运!

这篇关于无法访问Amazon EC2实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆