<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SSH – apt-upgrade.me – Homelab, Linux &amp; DevSecOps</title><link>https://www.apt-upgrade.me/tag/ssh/</link><description>One nerd's homelab: Linux, Kubernetes, security, and the occasional disaster.</description><language>en-GB</language><lastBuildDate>Mon, 19 Oct 2026 20:34:02 +0200</lastBuildDate><atom:link href="https://www.apt-upgrade.me/tag/ssh/index.xml" rel="self" type="application/rss+xml"/><item><title>The Ansible Tour, Part 5: IT Security – Firewall, SSH, fail2ban, Hardening, SELinux and Detection</title><link>https://www.apt-upgrade.me/2026/10/19/ansible-tour-part-5-security/</link><pubDate>Mon, 19 Oct 2026 20:34:02 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/19/ansible-tour-part-5-security/</guid><description>&lt;p&gt;&lt;em&gt;Part 5 of the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. After the platform, the blog and Nextcloud, this part gathers all security roles in one place, across both stacks. The series describes release &lt;a href="https://github.com/aptupgrademe/www_k3s/tree/v3.3.0"&gt;v3.3.0&lt;/a&gt;, with later changes added as updates.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Security here comes from layers: each one catches what the previous one missed. From the outside in, these are the firewall, the SSH login, the reaction to attacks in the logs (fail2ban), the hardening of the operating system, containment by SELinux, and detection by auditd, AIDE, rkhunter and ClamAV. The code is public, so an attacker can read it too. That is fine: the protection has to come from keys, layers and alerts, not from secrecy. Exact thresholds still stay vague here.&lt;/p&gt;</description></item><item><title>A Mail for Every SSH Login: A Two-Minute Tripwire with wtmp and systemd</title><link>https://www.apt-upgrade.me/2026/10/14/ssh-login-alarm-wtmp-systemd/</link><pubDate>Wed, 14 Oct 2026 10:02:43 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/14/ssh-login-alarm-wtmp-systemd/</guid><description>&lt;p&gt;&lt;em&gt;This is a follow-up to yesterday&amp;rsquo;s long post, &lt;a href="https://www.apt-upgrade.me/2026/10/13/defense-in-depth-nine-layers/"&gt;Defence in Depth: Nine Layers Between the Internet and My Servers&lt;/a&gt;. There, the login alarm got one sentence. Here is how it works, why it is built this way – and what an attacker learns from reading this.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;The idea is old and simple: if anyone logs in to one of my servers, I want to know – within minutes, not when I happen to look at a log a week later. Every login mails me. Since I know when I logged in myself, every mail I did not expect is worth looking at immediately. It is a tripwire: it does not stop anyone, it makes sure an intrusion does not go unnoticed.&lt;/p&gt;</description></item><item><title>Defence in Depth: Nine Layers Between the Internet and My Servers</title><link>https://www.apt-upgrade.me/2026/10/13/defense-in-depth-nine-layers/</link><pubDate>Tue, 13 Oct 2026 21:30:35 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/13/defense-in-depth-nine-layers/</guid><description>&lt;p&gt;A blog and two Nextcloud servers for local organisations: nothing on them is worth a targeted attack, and that is exactly why they get attacked. Not by someone who wants &lt;em&gt;my&lt;/em&gt; data, but by scanners that try every IP address on the internet, every hour, with the same handful of tricks. Most of them give up after the first locked door. The question is what happens with the ones that don&amp;rsquo;t.&lt;/p&gt;</description></item><item><title>Germany Only: Geo-Fencing SSH with nftables and Ansible (and What My Logs Said About Bots and Readers)</title><link>https://www.apt-upgrade.me/2026/10/01/geo-fencing-ssh-with-nftables-and-ansible/</link><pubDate>Thu, 01 Oct 2026 13:51:27 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/01/geo-fencing-ssh-with-nftables-and-ansible/</guid><description>&lt;p&gt;After moving two &lt;a href="https://nextcloud.com/"&gt;Nextcloud&lt;/a&gt; instances to new servers this week, I asked a simple question: &lt;em&gt;do my three servers - this blog and the two Nextclouds - attract different kinds of attackers?&lt;/em&gt; The answer was mostly &amp;ldquo;no, it&amp;rsquo;s the same background noise everywhere&amp;rdquo;. Except for one line that bugged me: &lt;strong&gt;SSH&lt;/strong&gt;. It runs on a non-standard port, accepts keys only, and fail2ban watches it. And yet the blog alone logged around &lt;strong&gt;16 connection attempts per hour&lt;/strong&gt; to the SSH daemon, from all over the world.&lt;/p&gt;</description></item><item><title>My Journey with the VU+ Duo 4K SE – A Linux-Powered SAT Adventure</title><link>https://www.apt-upgrade.me/2025/10/24/my-journey-with-the-vu-duo-4k-se-a-linux-powered-sat-adventure/</link><pubDate>Fri, 24 Oct 2025 21:10:25 +0200</pubDate><guid>https://www.apt-upgrade.me/2025/10/24/my-journey-with-the-vu-duo-4k-se-a-linux-powered-sat-adventure/</guid><description>&lt;p&gt;I&amp;rsquo;ve been using a &lt;strong&gt;VU+ Duo 4K SE BT&lt;/strong&gt; with a &lt;strong&gt;DVB-S2X FBC Twin Tuner&lt;/strong&gt; for about two years now.&lt;/p&gt;&#10;&lt;h2&gt;&lt;img alt="Illustration of a Linux-powered 4K satellite receiver with its remote control" class="alignnone wp-image-855 size-medium" height="200" src="https://www.apt-upgrade.me/wp-content/uploads/2025/10/vuplus-300x200.webp" width="300"/&gt;&lt;/h2&gt;&#10;&lt;p&gt;Before that, I was a happy &lt;strong&gt;TechniSat&lt;/strong&gt; user for many years — solid, reliable hardware that just worked.&lt;/p&gt;&#10;&lt;p&gt;But eventually, a few thoughts led me to switch to something a bit more... &lt;em&gt;open-sourcey&lt;/em&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;A &lt;strong&gt;Linux-based system&lt;/strong&gt; – more flexible, open, and likely to get updates and new features for longer&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Better codec and format support&lt;/strong&gt; for my rather large movie archive (TechniSat just couldn’t keep up)&lt;/li&gt;&#10;&lt;li&gt;The ability to install a &lt;strong&gt;2.5&amp;quot; HDD or SSD&lt;/strong&gt; for TV recordings&lt;/li&gt;&#10;&lt;li&gt;An &lt;strong&gt;insane variety of plugins&lt;/strong&gt; and apps – YouTube, anyone?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;HBBTV / media library support&lt;/strong&gt;, something my older Samsung TV lacks&lt;/li&gt;&#10;&lt;li&gt;And of course, &lt;strong&gt;SSH access&lt;/strong&gt; for transferring files and running cron jobs — because automation makes life better 😉&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;So, why not just use the built-in satellite tuner of my TV?&lt;/p&gt;</description></item><item><title>🛡️ Nextcloud Backup Like a Pro – Automated with Bash</title><link>https://www.apt-upgrade.me/2025/07/11/%F0%9F%9B%A1%EF%B8%8F-nextcloud-backup-like-a-pro-automated-with-bash/</link><pubDate>Fri, 11 Jul 2025 21:30:24 +0200</pubDate><guid>https://www.apt-upgrade.me/2025/07/11/%F0%9F%9B%A1%EF%B8%8F-nextcloud-backup-like-a-pro-automated-with-bash/</guid><description>&lt;p&gt;Ever wanted to backup your self-hosted &lt;strong&gt;Nextcloud&lt;/strong&gt; instance without sweating bullets? Tired of rsync-ing folders manually or risking broken databases? Buckle up, sysadmin – here’s a neat little &lt;strong&gt;Bash script&lt;/strong&gt; that does the dirty work for you. From enabling maintenance mode to syncing your external data and dumping your MySQL database – it’s all handled in a single run. 🧠&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="-what-does-this-script-do"&gt;📜 What Does This Script Do?&lt;/h2&gt;&#10;&lt;p&gt;This script performs a 6-step backup of your remote Nextcloud server:&lt;/p&gt;</description></item></channel></rss>