Last active
January 8, 2021 06:52
-
-
Save chapinb/b59d4e66ff5d66a40cd68d592ed1b103 to your computer and use it in GitHub Desktop.
First ten minutes on a server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on blogpost https://www.codelitt.com/blog/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/ | |
# Update and upgrade all | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# install packages | |
sudo apt-get install ufw fail2ban unattended-upgrades libpam-google-authenticator -y | |
# Setup ufw | |
sudo ufw allow 22 | |
sudo ufw disable | |
sudo ufw enable | |
sudo ufw status verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment