Skip to content

Instantly share code, notes, and snippets.

@AdamBrodzinski
Last active December 29, 2015 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBrodzinski/fbc5e8850df7ea79d030 to your computer and use it in GitHub Desktop.
Save AdamBrodzinski/fbc5e8850df7ea79d030 to your computer and use it in GitHub Desktop.
Ubuntu Setup Script for DO
#!/usr/bin/env bash
apt-get update
apt-get upgrade
sudo apt-get install autossh
# prevent bruteforce on SSH
apt-get install fail2ban
# setup firewall
ufw allow 22
ufw allow 80
ufw allow 443
ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment