HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
imthenachoman
How-To-Secure-A-Linux-Server
Systems & Infrastructure2019–2025
imthenachoman / How-To-Secure-A-Linux-Server

How-To-Secure-A-Linux-Server

An evolving how-to guide for securing a Linux server.

10Distinct people
11Mentions
0Explicit recommenders
32.1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

An evolving how-to guide for securing a Linux server.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year11 dated mentions

Observed mentions: 2019-02-16 06:47:25 UTC to 2025-08-01 11:14:37 UTC.

012342019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 3 mentions; 3 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC413
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC312
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC330
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC110

What Hacker News says

11 sources
Qision·Nov 11, 2024Submission

Ask HN: How to properly secure a server?

Hi, I started playing around with a small VPS. To learn about security I followed a tutorial on Github [1] in which they talk about a lot of tools. I understand that ssh, ufw and fail2ban are the most important but for example should I use PSAD or CrowdSec? Basically I want to self host services and run web apps, so how can I know how much security do I need? Thanks for your help [1]: https://github.com/imthenachoman/How-To-Secure-A-Linux-Server
2 points · Open discussion
> In short it’s all about control, privacy, and security, in that order. I am going to strongly urge you to consider changing that order and move *security* to the first priority. I have long run my own servers, it is much easier to setup a server with strong security foundation, than to clean up afterwards. As a beginner, you should stick to a well known and documented Linux server distribution such as Ubuntu Server LTS or Fedora. Only install the programs you need. Do not install a windowing system on it. Do everything for the server from the command line. Here are a few blog posts I have bookmarked over the years that I think are geared to beginners: "My First 5 Minutes On A Server; Or, Essential Security for Linux Servers": An quick walk through of how to do basic server security manually [1]. There was a good Hacker News discussion a
Read the rest
bout this article, most of the response suggests using tools to automate these types of security tasks [2], however the short tutorial will teach you a great deal, and automation mostly only makes sense when you are deploying a number of similar servers. I definitely take a more manual hands-on approach to managing my personal servers compared to the ones I professionally deploy. "How To Secure A Linux Server": An evolving how-to guide for securing a Linux server that, hopefully, also teaches you a little about security and why it matters. [3] Both Linode[4] and Digital Ocean[5] have created good sets of Tutorials and documentation that are generally trustworthy and kept up-to-date Good luck and have fun [1]: https://sollove.com/2013/03/03/my-first-5-minutes-on-a-serve... [2]: https://news.ycombinator.com/item?id=5316093 [3]: https://github.com/imthenachoman/How-To-Secure-A-Linux-Serve... [4]: https://www.linode.com/docs/guides/ [5]: https://www.digitalocean.com/community/tutorials
In Ask HN: How can a total beginner start with self-hosting?

Ask HN: How do you secure your home server?

I am getting into self-hosting and it seems it takes an awful lot of work to secure your general-purpose Linux distribution.[0] I am surprised that the default seems to be to do all of this by hand. How do you deploy a secure Linux home server? Are there distros that are pre-configured for this purpose? Do you use any Ansible playbooks (or other scripts)? Or do you indeed implement all security measures manually? [0]: https://github.com/imthenachoman/How-To-Secure-A-Linux-Server
2 points · Open discussion
Hey folks! I am the author of this guide. I did not know this was here or I would have commented sooner. This is my first time putting a guide like this together. I see a lot of really great feedback and I will be incorporating them into future updates. I don't have time today but I will reply individually to all the comments that I can. I appreciate any/all feedback/advice. If possible, could future issues be submitted to GitHub because it is easier for me to manage if everything is in one place. https://github.com/imthenachoman/How-To-Secure-A-Linux-Serve... But right now I need to find all the other places this guide is linked to with comments so I can address them too. :)
In How to Secure a Linux Server

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.