How to Secure a Linux Server with UFW, SSH Keygen, fail2ban & Two Factor Authentication

Channel:
Subscribers:
66,100
Published on ● Video Link: https://www.youtube.com/watch?v=sO-afVsDJOA



Category:
Guide
Duration: 20:13
51,884 views
1,569


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




Other Videos By Game Guides


2021-01-09How Much do Small YouTubers Make? My YouTube Revenue in 2020
2021-01-01WARZONE FPS GUIDE 2021: Best PC Settings to boost FPS in Warzone
2020-12-20My new YouTube Studio 2.0 is done!!
2020-11-21How to set up ZFS RAID 10 (Mirror VDEVS) on Ubuntu 20.04 - UP TO 9 GIGABIT/S TRANSFER SPEED
2020-10-17Call of Duty Cold War Best PC Settings for high FPS
2020-10-10What's the Best Bitrate for the Best Video Quality on YouTube? (1080p, 1440p, 4K)
2020-09-27Building my new YouTube Studio - Part 3: Sound Treatment and Pegboard Installation
2020-09-19Building my new YouTube Studio - Part 2
2020-09-13Best Budget Mic for YouTube & Streaming? TONOR TC-777 USB Condenser Microphone Review
2020-09-05Building my new YouTube Studio - Part 1
2020-08-16How to Secure a Linux Server with UFW, SSH Keygen, fail2ban & Two Factor Authentication
2020-08-08How to Partition, Format, and auto Mount Disk on Ubuntu 20.04
2020-07-25How to Build an Ecommerce Website from Scratch - Zyro Website Builder Tutorial
2020-06-26The MICRO BEAST - Building a Small and Light Micro ATX Gaming PC
2020-06-21The Home Server Project Part 1: How to Install Ubuntu Server 20.04 LTS from USB drive
2020-06-13Ultimate 10 GIGABIT Ryzen Home Server Build 2020
2020-05-30Huawei Matebook X Pro (2018) Long Term Review - The Best Ultrabook?
2020-05-29Dual PC Audio Setup: How to Send Audio & Microphone over Ethernet
2020-05-22Share Keyboard and Mouse Between two Computers: ShareMouse Review
2020-05-17WARZONE Free Loadout Drops & Bleed out Times Explained
2020-05-10THANK YOU for 20K Subscribers - HUGE CHANNEL CHANGES!



Tags:
secure linux server
how to secure server
how to secure a web server
linux web server
ufw
configure ufw firewall
how to use ssh keys
ssh keys explained
linux ssh
ssh key-based authentication
ssh key authentication
ssh-keygen
fail2ban
fail2ban ubuntu
2fa ssh
ubuntu ssh two factor
ubuntu 2fa
hardening apache
home web server
secure web server
how to secure web server
secure apache server
securing linux server
securing openssh
how to change default ssh port