EL SHELL IN A BOX
Shell in a box will create a custom webserver that allows for terminal access.
INSTALLATION
Firt we need to have EPEL enabled if it is not already:
sudo yum install epel-release
Next, install the shellinabox package:
sudo yum install shellinabox
CONFIGURATION
The configuration file is located at:
/etc/sysconfig/shellinaboxd
Ensure that the port is a good one.
FIREWALL CONFIGURATION
Presuming standard port 4200 (correct as necessary):
sudo firewall-cmd --permanent --add-port=4200/tcp
sudo firewall-cmd --permanent --add-port=4200/udp
sudo firewall-cmd --reload
ENABLE & START DAEMON
sudo systemctl enable shellinaboxd
sudo systemctl start shellinaboxd
REBOOT
Due to having new user/group for the daemon, a reboot is necessary
sudo systemctl reboot
FIX ANY SELINUX ISSUES
sudo ausearch -c 'login' --raw | audit2allow -M my-login
sudo semodule -i my-login.pp