No video

5 Easy Tweaks to increase your Linux Server's Security

In the second episode of my Enterprise Linux Security series, I'll show you 5 easy tweaks you can make to enhance the security of your Linux server. Ubuntu Server will be shown as the example distribution, but most of these tweaks can be done on any distro with some modifications to the syntax as necessary.
Time Codes:
00:00 - Intro
03:27 - Tweak 1: Adding a non-root user
08:06 - Tweak 2: Install updates
10:47 - Tweak 3: Setting up unattended-upgrades
20:31 - Tweak 4: Locking down Openssh
32:26 - Tweak 5: Installing Fail2ban
LearnLinuxTV Links
🐧 Main site:
➡️ www.learnlinux.tv
🐧 LearnLinuxTV Community:
➡️ community.lear...
Support LearnLinuxTV (commission earned)
📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
➡️ ubuntuserverbo...
☁️ Support LearnLinuxTV and Set up your own cloud server with Akamai Connected Cloud:
➡️ learnlinux.lin...
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.lin...
☁️ Check out Extended Lifecycle Support to keep your end-of-life distributions supported for a longer period of time:
➡️ elsportal.com/
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.lin...
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.lin...
About Me
🐦 Follow me on Twitter!
➡️ / jaythelinuxguy
👨 More about me:
➡️ www.jaylacroix...
➡️ www.learnlinux...
Recommended evergreen videos:
💽 How to create a bootable flash drive for installing Linux
➡️ linux.video/fl...
🐧 OpenSSH Guide
➡️ linux.video/ssh
📖 LVM Deep-dive:
➡️ linux.video/lvm
🔐 How to better secure OpenSSH:
➡️ linux.video/se...
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.lin...
📘 FAQ
• What is a "Distribution" of Linux? ➜ linux.video/wh...
• What is a "Desktop Environment"? ➜ linux.video/de...
• Which Linux Distro should I use on my Server? ➜ linux.video/wh...
• How do I create USB install media? ➜ linux.video/in...
• How do I create multi-boot USB media? ➜ linux.video/ve...
• How do I connect to a Linux server via SSH? ➜ linux.video/us...
• How do I exit vim? ➜ linux.video/vim
• How do I use APT? ➜ linux.video/apt
• How do I use DNF? ➜ linux.video/dnf
• How do I use pacman? ➜ linux.video/pa...
• How do I use zypper? ➜ linux.video/zy...
• What the heck is a "Flatpak"? ➜ linux.video/fl...
• What is a "Snap" package? ➜ linux.video/snap
• How do I install Arch Linux? ➜ linux.video/in...
• How do I configure SSH on my server? linux.video/ss...
• How do I install updates? ➜ linux.video/up...
• What server tweaks should I implement? ➜ linux.video/ev...
• How do I use LVM? ➜ linux.video/lvm
• How do I use Git? ➜ linux.video/git
• When will the "Year of the Linux Desktop" Happen? ➜ linux.video/yotld
• Do you have a sense of humor? ➜ linux.video/lol
#Server #Linux #Security

Пікірлер: 40

  • @nightmarenova6748
    @nightmarenova67483 жыл бұрын

    Great video Jay, i think this should be somewhat of a series if possible "Securing Linux servers 101"

  • @camerontgore
    @camerontgore3 жыл бұрын

    Love the security content! Keep it coming!

  • @TheBlues1961
    @TheBlues19613 жыл бұрын

    Great video as always. It is amazing the amount of information you are able to deliver on the topics and surrounding the topics on such a clear manner. For the same reason, to me, the third edition of your book "mastering ubuntu server" is a master piece.

  • @cstephan7
    @cstephan73 жыл бұрын

    Back on track again :) Thanks for all that you do, Jay.

  • @FedecraftITALIA
    @FedecraftITALIA3 жыл бұрын

    5 easy tweaks, 40 minutes long video 😵 JK, now I will watch it.

  • @jamiej.2365
    @jamiej.23653 жыл бұрын

    Good info. Thanks Jay!! If u get a chance i would love to see a video showing how to manually set up an open lightspeed server with wordpress and SSL config.

  • @MrPDC-jr5yl
    @MrPDC-jr5yl3 жыл бұрын

    Super video Jay. Is there an ansible playbook for this? :) Also, do you create a separate sudo user for ansible commands or same non-root user can be used? as well separate key for this without a pass?

  • @schriebfehler

    @schriebfehler

    11 ай бұрын

    Good questions. did you find your anwsers youre self? I was wondering the same

  • @grahammccann8554
    @grahammccann85543 жыл бұрын

    Hi Jay, Thank you for the video, very helpful.

  • @hoterychannel
    @hoterychannel3 жыл бұрын

    if sudo still can be considered secure and more, recommended fo use? And if we going to use sudo, we can disable root account completely. or use “su” and have separate password (for root user)? Dont understand, if we can add our ip (or ip range) in ignoreip in fail2ban, why we cant just allow only that ips with firewall?

  • @chillpill7348
    @chillpill73482 ай бұрын

    Wonderful video as usual brother , thanks a lot for ur rfforts & work. I m ew to linux, request you to pleaase make such tweaks & security things for desktop distros too. I m on LinuxMint 21.3 Cinemon. Really appreciate u, thanks once again. TC.

  • @Ranblv
    @Ranblv3 жыл бұрын

    excellent video as always

  • @unbekannter_Nutzer
    @unbekannter_Nutzer3 жыл бұрын

    7:00 I doubt `sudo ls /etc` is a good command, to test, whether the sudo command works, since normally, you can do `ls /etc` without sudo with the same result. `sudo ls /etc/ssl/*` would be fine, which normally gives you a mixed output of files you are allowed to see and an error message for /etc/ssl/private. Imho it is a bad practice, to constantly clear the screen while teaching. I'm often still reading in the output or the last command. At 9:40 for instance, you clear the screen and talk until 10:15, without typing anything at the prompt. If you do a double enter when starting a new point, it is easy to follow and to find the breaks while being able to read commands and output and think about them.

  • @ziggyspaz
    @ziggyspaz3 жыл бұрын

    This video is geared towards linux distros that use `apt`

  • @vordreller6428
    @vordreller64283 жыл бұрын

    Personally I'd advise against unattended upgrades. Don't want an upgrade to docker being installed on a live system, potentially restarting all containers. At the very least, specific packages should be put on hold when they're operation critical and cannot be restarted under normal circumstances.

  • @Bogomil76
    @Bogomil763 жыл бұрын

    18:05 Is „false“ right there? (Unattended-Upgrade::Remove-Unused_Dependencies)?

  • @d00dEEE

    @d00dEEE

    3 жыл бұрын

    Hmm, good question! Does the setting above that (remove-NEW...) get rid of enough, or should they both be true? Seems to me they should both be true, but let's see what Jay says.

  • @sirsuse

    @sirsuse

    3 жыл бұрын

    I have the same question. I decided to go ahead and change this to "true" because it makes sense, but I'm no expert.

  • @jkommisar

    @jkommisar

    3 жыл бұрын

    So, but leaving the "False" Commented as before, It was true then...??.?.?.?

  • @JeanPaulB
    @JeanPaulB Жыл бұрын

    Question: isn't the 'ignoreip' option in fail2ban irrelevant if we're using a public key to access the server?

  • @n.aminr.7175
    @n.aminr.71759 ай бұрын

    Can I enable VPN on my router to my server? Is this possible?

  • @Bluelight82
    @Bluelight823 жыл бұрын

    Is this way of connecting to servers on by default if you install a Linux Mint server at home to connect to? I would prefer to only allow LAN connections.

  • @Max95Cohen
    @Max95Cohen3 жыл бұрын

    Hi, Jay. What is the music on chapter changing?

  • @guilherme5094
    @guilherme50943 жыл бұрын

    Thanks Jay.

  • @MorphicStates
    @MorphicStates2 жыл бұрын

    supersecure as a password? I like it. ;-)

  • @ryanbell85
    @ryanbell853 жыл бұрын

    Can you prevent your SSH passphrase from being cached?

  • @lsdowdle
    @lsdowdle3 жыл бұрын

    On RHEL/clones and Fedora, try update-crypto-policies. Really nice tool. It allows for easy, global cyrpto settings changes that previously would have required knowledge of every service and their particular crypto config syntax.

  • @SkyFly19853
    @SkyFly198533 жыл бұрын

    Thanks for this tutorial! Btw, can these tweaks be used for Linux Desktop environment?

  • @JeffreyHorn

    @JeffreyHorn

    2 жыл бұрын

    Yep!

  • @SkyFly19853

    @SkyFly19853

    2 жыл бұрын

    @@JeffreyHorn I see.

  • @kjakobsen
    @kjakobsen3 жыл бұрын

    Just like your rant about using root as primary user. Please don't base 24hr service, on servers never having to reboot. HA means systems stadig up, even is services or servers needs downtime.

  • @mulletman1705
    @mulletman17053 жыл бұрын

    Rather pointless using a non root user with sudo privileges, root and non root sudo have the exact same privillage, it is completely pointless in terms of increasing security

  • @JeffreyHorn

    @JeffreyHorn

    2 жыл бұрын

    I don’t believe this is true. Brute force attacks, both external and internal, target the root user. If I set my user to some arbitrary value, it is less likely to be discovered and battered.

  • @mulletman1705

    @mulletman1705

    2 жыл бұрын

    @@JeffreyHorn for good security you should not be allowing people to brute force usernames and passwords to try gain access, security by obscurity is bad advice

  • @talktothehand1212

    @talktothehand1212

    2 жыл бұрын

    @@mulletman1705 but this isn't security through obscurity? If more scrips target root than brute forcing, wouldn't disallowing root login just be security, since you're shutting out at least a plurality of threats?

  • @mulletman1705

    @mulletman1705

    2 жыл бұрын

    @@talktothehand1212 no because your hoping by obscuring a username that the attacker will not be able to brute force access by guessing the username.

  • @talktothehand1212

    @talktothehand1212

    2 жыл бұрын

    @@mulletman1705 like, I understand that a username and password shouldn't be treated as a line of defense, but I also don't see why using a non-root user is a bad practice. It's not going to make things more secure, but I don't see why you'd discourage the practice, especially on something you expect to be logging into at some point.

  • @olliefromsteam5219
    @olliefromsteam52192 жыл бұрын

    5 easy things - video is 40 min long