How to Secure a Linux Server with UFW, SSH Keygen, fail2ban & Two Factor Authentication
Tech Guides
In-depth guide on how to secure a Linux home server running Ubuntu 20.04. This video explains how to change the default SSH port, how to configure an UFW firewall, how to use ssh key-based authentication, how to install and configure fail2ban, and finally how to setup two factor authentication (2FA).
Follow this tutorial on my blog: https://techguides.yt/secure-linux-server
This video is part of my ultimate home server tutorial video series!
Part 0: 10 GIGABIT Ryzen Home Server Build: https://youtu.be/0zCflrtTPn8
Part 1: How to Install Ubuntu Server 20.04 LTS from USB: https://youtu.be/9KFlxVTPicc
Part 2: How to format and partition hard drives: https://youtu.be/NQdTAfVQDB4
Part 3: You are here 🙂
Part 4: How to set up ZFS RAID10 on Ubuntu 20.04: https://youtu.be/FwL0yrGV2O0
Part 5: How to Install Nextcloud Hub 21 on Ubuntu 20.04: https://youtu.be/ZM1fL6ze4X8
Part 6: How to Install Bitwarden on Ubuntu 20.04: https://youtu.be/7bFuJCxWH6I
Check out today’s video sponsor IPVanish: https://techguides.yt/ipvanish
Timeline:
00:00 – Intro
01:21 – Get a VPN for less than 50$ for a full year!
02:25 – How to change default SSH port
05:26 – How to set up UFW
09:02 – How to set up key-based authentication
12:11 – How to disable password based authentication
12:52 – How to set up fail2ban
16:03 – How to set up two factor authentication
Video Resources
Thumbnail adapted from: https://www.freepik.com/free-vector/cyber-security-concept_8145780.htm
Man in the middle attack: https://medium.com/@heller_9/mitm-man-in-the-middle-attack-eavesdropping-at-its-best-685eb47acd32
Privileged ports: https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html
💻 Gaming Setup: https://amzn.to/2E67AUG
📷 Production Gear: https://amzn.to/2VhbShO
🎵 Production Music courtesy of Epidemic Sound: http://www.epidemicsound.com
📝 Blog: https://techguides.yt
🐦 Twitter: https://twitter.com/techguidesyt
📺 Twitch: http://www.twitch.tv/speedbre4ker
🎧 Discord: https://discord.gg/tV4JVF2
#Secure #Server #TechGuides