Can't access to amazon ec2 instance

你。 提交于 2019-12-08 04:03:59

问题


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

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

It says connection closed by <public ip>

and FileZilla stopped working and I am getting this error:

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

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

What happened?


回答1:


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

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

And a look at this potential resolution: https://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.

Good luck!



来源:https://stackoverflow.com/questions/24734463/cant-access-to-amazon-ec2-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!