TCP Keepalives: Why Connections Die and How to Fix It
Idle SSH sessions and long-lived connections die because the OS gives up first. What the three keepalive sysctls mean, how to tune them, and per-socket options.
All the articles with the tag "sysadmin".
Idle SSH sessions and long-lived connections die because the OS gives up first. What the three keepalive sysctls mean, how to tune them, and per-socket options.
Set up auditd to log every sudo command and file change on Linux: auditctl rules, ausearch, aureport, and shipping logs to Loki or Elasticsearch for compliance.
Your VM's clock is off by minutes, NTP says it's synced, yet the system keeps drifting. Here's why the hypervisor is the real culprit, and how to fix it.
MTU mismatches silently break large file transfers, backups, and video calls. Here's how to find and fix the wrong frame size on your network.
DNS broke again. The command sequence that finds it: verify the resolver, reach a server, dig the record, trace the query path, check reverse lookups.
Master LVM snapshots and thin provisioning on Linux. Learn to create, use, and merge snapshots for backups, and over-provision storage safely.
Harden SSH properly: disable password auth, switch to Ed25519 keys, configure sshd_config, set up SSH certificates with step-ca, add 2FA, and configure ProxyJump for bastion hosts.
Docker volumes vs bind mounts explained: named volumes, anonymous volumes, bind mounts, and tmpfs. Real examples for databases, dev workflows, and production.
Ventoy turns any USB drive into a multi-boot drive, drop ISOs on it and boot any OS without re-flashing the drive each time.
One syntax error in /etc/sudoers locks everyone out of root. Use visudo, read the syntax properly, avoid the common mistakes, and know what NOPASSWD gives.
Certificates expire silently and take the site with them. Check expiry with openssl, automate the check with cron or Uptime Kuma, and audit every cert.
Environment variables live in five places on Linux: /etc/environment, ~/.bashrc, ~/.profile, systemd Environment=, and the shell. When to use each one.