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

asked 5 years ago284 views
1 Answer
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
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions