Skip to content

Instantly share code, notes, and snippets.

@TyeolRik
Last active May 31, 2020 07:27
Show Gist options
  • Save TyeolRik/61516b992e9188dc0ace842f3832dfe1 to your computer and use it in GitHub Desktop.
Save TyeolRik/61516b992e9188dc0ace842f3832dfe1 to your computer and use it in GitHub Desktop.
Default script for making instance in Openstack
#!/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