Skip to content

Instantly share code, notes, and snippets.

@kzn4
Created June 4, 2017 08:47
Show Gist options
  • Save kzn4/b20ad3854272546a3f84aef143c3ac63 to your computer and use it in GitHub Desktop.
Save kzn4/b20ad3854272546a3f84aef143c3ac63 to your computer and use it in GitHub Desktop.
apt-get -y update && apt-get -y upgrade && apt-get -y install nano && apt-get -y install wget &&
apt-get -y install dropbear && wget https://gist.githubusercontent.com/kzn4/01df68c1233faffdd6fdbaa501ed53b4/raw/48c35c952854d9f0c2d8c517bf89aef61d292f9c/source.listdo && cp -f source.listdo /etc/apt/sources.list &&
wget http://www.webmin.com/jcameron-key.asc && apt-key add jcameron-key.asc && apt-get -y update && apt-get -y install webmin &&
wget https://gist.githubusercontent.com/kzn4/c73891d0fb24b07816007404d2e50bf2/raw/0ae59c50cea130ff8191f039305e1a9b13978ebb/sshd_config && cp -f sshd_config /etc/ssh/sshd_config
&& wget https://gist.githubusercontent.com/kzn4/3c575957b1fc1ecee15458dcfe9a5cba/raw/6718a690a2bdfddf0600250e35e4bac0b03bfad0/dropbear && cp -f dropbear /etc/default/dropbear
&& wget https://gist.githubusercontent.com/kzn4/e7d931ac081e79de95e2d811efd8b359/raw/985261a05b5082866cccaa72d9bb92dac553e681/miniserv.conf && cp -f miniserv.conf /etc/webmin/miniserv.conf &&
/etc/init.d/dropbear restart && /etc/init.d/webmin restart && /etc/init.d/ssh restart &&
rm -f sshd_config dropbear jcameron-key.asc miniserv.conf source.list autoinstalldo.sh &&
echo "/bin/false" >> /etc/shells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment