Skip to content

Instantly share code, notes, and snippets.

@kaxing
Last active November 11, 2021 14:48
Show Gist options
  • Save kaxing/a72f526a62378cb60eb17b8c671e9bec to your computer and use it in GitHub Desktop.
Save kaxing/a72f526a62378cb60eb17b8c671e9bec to your computer and use it in GitHub Desktop.
Very Basic Server Preparation

For Ubuntu

$ curl -sSL https://gist.githubusercontent.com/kaxing/a72f526a62378cb60eb17b8c671e9bec/raw/161c9a5bc17c8b3f3151dfaabc6cb6df08267a8a/ubuntu.sh | bash
#!/usr/bin/env bash
apt update
apt install -y fail2ban
ufw allow ssh
ufw --force enable
apt -y full-upgrade
systemctl reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment