MaxAuthTries
The sshd_config setting that limits how many authentication attempts a client may make on one connection before it is disconnected.
In more detail
The OpenSSH default is six, and once half that many attempts have failed, further failures are logged. Lowering it slows guessing on a single connection, but an attacker can simply reconnect, so it works best alongside a tool such as fail2ban. Each key a client offers counts as an attempt, so a low limit can lock out a tool that tries several keys before the right one.
Examples
MaxAuthTries 3git commit -qam "Lower maxauthtries to 3 (CHG-2291)"Related terms
- PasswordAuthentication — The sshd_config setting that decides whether users may log in to an SSH server by typing a password.
- fail2ban — A Linux tool that watches log files for repeated failed logins and temporarily blocks the addresses they come from.
- MaxSessions — The sshd_config setting that limits how many shell, login or subsystem sessions may share one SSH network connection.
- change request — A formal record asking to make a specific change, stating what will change, why, who owns it, and how it will be tested and undone.
Taught in
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Security Baselines, Policies & Hardening Standards — Cybersecurity Fundamentals, GRC & Cryptography
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep