无法访问Amazon EC2实例实例、无法访问、Amazon

2023-09-11 09:39:45 作者:那男人、虚伪到心

使用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.

看看这个问题: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.

和一起来看看这个潜在的分辨率: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.

祝你好运!

 
精彩推荐
图片推荐