TOPIC / TAG
Notes in ssh
6 articles

fail2ban for SSH on Debian 13
Install fail2ban on Debian 13, understand the sshd jail the package already enables, tune bans in a local override, and check, test, and undo bans safely.

ufw Without Locking Yourself Out
Set up ufw on a Debian or Ubuntu VPS with SSH allowed first, a timed rollback in case a rule is wrong, and a clear view of the Docker ports ufw cannot see.

A Calm SSH Host Key Check
Check what really changed when SSH warns about a new host key, before deleting the old entry from knownhosts.

SSH Config Aliases for a Small Fleet
Replace long SSH commands with readable host aliases while keeping usernames, ports, keys, and jump hosts explicit.

The First Hour on a Fresh Debian or Ubuntu VPS
Set up a sudo user, SSH keys, an sshd drop-in that blocks password and root logins, a ufw firewall, and automatic security updates on a new Debian or Ubuntu server, checking each step as you go.

tmux for a Quietly Persistent Shell
Keep a long command running when your SSH connection drops, with three tmux commands and a couple of useful extras.