Last active
May 31, 2020 07:27
-
-
Save TyeolRik/61516b992e9188dc0ace842f3832dfe1 to your computer and use it in GitHub Desktop.
Default script for making instance in Openstack
This file contains hidden or 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/sh | |
sudo useradd test | |
sudo passwd test | |
sudo yum install iptables-services git openssl-devel pam-devel zlib-devel autoconf automake libtool -y | |
sudo git clone https://github.com/anilgulecha/shellinabox.git | |
cd shellinabox | |
sudo autoreconf -i | |
sudo ./configure | |
sudo make | |
sudo make install | |
cd /usr/local/bin | |
shellinaboxd --port 4201 -b -t | |
sudo iptables -I INPUT 1 -p tcp --dport 4201 -j ACCEPT | |
sudo iptables -I OUTPUT 1 -p tcp --dport 4201 -j ACCEPT | |
sudo service iptables save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment