help! Ssh can not be connected to SELinux

0

Since the server was attacked, I started selinux, causing me to ssh not connect to the server now, prompt /bin/bash: Permission denied
Ec2 server centos Now the console can't enter the server to shut down selinux, my files are not backed up, help, thank you very much

Edited by: handsomehaitao on Apr 2, 2019 10:52 PM

已提問 5 年前檢視次數 296 次
1 個回答
0

I'm assuming you used CentOS from the marketplace and thus cannot mount the volume as a secondary drive to another instance to undo your change, nor do you have a snapshot. (Otherwise, do one of those).

It appears to can have AWS remove the marketplace code from a snapshot (https://forums.aws.amazon.com/message.jspa?messageID=541676). I would recommend doing it through a support ticket. Once complete, you can create a new volume that you can mount on a working system, disable SELinux, and reattach to the original instance.

rsrcno
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南