[英]Can't access to amazon ec2 instance
I can't access to amazon ec2 instance using ssh terminal: 我无法使用ssh终端访问Amazon EC2实例:
ssh -i new.pem ubuntu@<public-ip>
It says connection closed by <public ip> 它说连接被<public ip>关闭
and FileZilla stopped working and I am getting this error: 和FileZilla停止工作,并且出现此错误:
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. 这一切都发生在我将服务器的
/etc
文件夹的权限更改为775以更新php.ini文件之后。
What happened? 发生了什么?
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. 看一下这个问题: https : //serverfault.com/questions/364677/why-is-chmod-r-777-destructive ,它描述了类似的情况。
And a look at this potential resolution: https://serverfault.com/questions/234061/re-gaining-root-access-to-an-ec2-ebs-boot-image 并查看这个潜在的解决方案: 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! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.