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

posta 5 anni fa296 visualizzazioni
1 Risposta
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
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande