Skip to content

Instantly share code, notes, and snippets.

@117
Last active July 11, 2020 03:25
Show Gist options
  • Save 117/053d77f53049920ed39e648a26e0c84d to your computer and use it in GitHub Desktop.
Save 117/053d77f53049920ed39e648a26e0c84d to your computer and use it in GitHub Desktop.
ubuntu post-install script
# let's keep things quiet
touch .hushlogin
# make sure everything is up to date
sudo apt update
sudo apt upgrade
# cleanup
sudo apt remove telnet
sudo apt autoremove
# should be using a key, but it cant hurt to add f2b
sudo apt install fail2ban
# use uncomplicated firewall
ufw allow ssh
ufw allow ftp
ufw allow http
ufw allow https
ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment