Created
January 7, 2016 06:05
-
-
Save protosam/c657b7c574e8fc8de3e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum install shellinabox -y | |
sed -i '/^pts/d' /etc/securetty | |
for i in {0..40}; do echo pts/$i >> /etc/securetty; done | |
sed -i '/^OPTS=/d' /etc/sysconfig/shellinaboxd | |
echo 'OPTS="--user-css Normal:+/usr/share/shellinabox/white-on-black.css --disable-ssl-menu -s /:LOGIN"' >> /etc/sysconfig/shellinaboxd | |
systemctl restart shellinaboxd | |
systemctl enable shellinaboxd | |
echo ProxyPass /shellinabox http://localhost:4200/ > /etc/httpd/conf.d/shellinabox.conf | |
systemctl reload httpd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment