sshd: enable fail2ban with default ssh jail (quick win, no exposure change) #104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
fail2banandsshguardare bothinactiveon kai-server while sshd is listening on0.0.0.0:22andauth.logis taking active brute-force scans (2.57.122.177,89.134.210.182,213.35.128.24,161.35.139.3, etc., observed live during today's mobile-SSH debug). Nothing is throttling repeated failed-auth attempts.Proposed change
Lowest-risk immediate hardening that doesn't depend on resolving the broader exposure question:
Default jail config ships with the
sshdjail enabled and tuned for Ubuntu's auth.log format. No sshd binding changes, no firewall topology changes - just bans IPs after N failed-auth attempts.Verify after:
Why split this off from the bigger audit
The parent issue, infrastructure#103, needs decisions about router port-forwards and the tangled-knot git-SSH path before changing exposure. That's a real audit. fail2ban can ship in 5 minutes regardless of those decisions and immediately cuts bot scan effectiveness.
Parent
Filed by Claude.