Join our Newsletter — 33% off our NHI Course
Governance, Ownership & Risk

MaxTries

← Back to Glossary
By NHI Mgmt Group Updated November 19, 2026 Domain: Governance, Ownership & Risk

MaxTries is an sshd configuration setting that limits how many authentication attempts a client gets before the connection is closed. It is a practical control for slowing password guessing, but it must be tuned carefully because several checks can count as attempts. Too low a value can block legitimate users prematurely.

What MaxTries Controls

MaxTries is an sshd setting that limits how many authentication attempts a client can make before the connection is closed. It is a defensive throttle against password guessing, but it also influences usability because multiple checks can consume attempts faster than users expect.

Why the Setting Matters

MaxTries works at the authentication boundary, where an attacker can otherwise keep cycling guesses through a single session. That makes it useful for reducing brute-force opportunity, especially when password-based access is still permitted, but it does not replace stronger authentication controls.

Because the limit is enforced per connection, the practical effect depends on how many prompts or checks occur before the user finishes authenticating. In environments with layered methods, a value that looks generous on paper can still terminate legitimate logins if the flow uses several steps.

How MaxTries Affects Access Behaviour

The setting changes the shape of the login experience, not just the security posture. A lower threshold shortens the window for repeated guessing, while a higher threshold gives users more room to recover from mistakes, type errors, or complex multi-step authentication flows.

That trade-off matters because authentication systems often fail in the grey area between security and operability. If administrators tune the value too aggressively, they can create self-inflicted lockout pressure, especially for remote users, automated access paths, or environments with stricter keyboard-interactive checks.

Tuning MaxTries Safely

Good tuning starts with understanding the exact authentication sequence in use, then setting the limit to match realistic user behaviour rather than an assumed single password prompt. Administrators should validate the result against representative login paths so that the control reduces guessing without creating avoidable service friction.

MaxTries is most effective when paired with stronger authentication design, monitoring for repeated failures, and sensible account protection policy. On its own, it is a friction control, not a complete defence against credential attack.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementMaxTries limits repeated authentication attempts and supports credential-use controls.
AC-7 — Unsuccessful Logon AttemptsThe setting directly constrains failed login attempts before the session is closed.
IA-2 — Identification and Authentication (Organizational Users)sshd authentication behaviour is part of proving user identity before access is granted.
Recommendation — Set attempt limits alongside authenticator policy to reduce brute-force exposure without blocking legitimate users. Enforce unsuccessful-logon thresholds that slow guessing while preserving operable access paths. Align SSH login controls with organizational authentication requirements and tested user flows.
CIS Controls v85 — Account ManagementLogin throttling is a practical account-access safeguard tied to controlled authentication behaviour.
Recommendation — Apply account-access safeguards that limit repeated login attempts and reduce password guessing.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access ControlMaxTries is an authentication control that shapes how access attempts are accepted or denied.
Recommendation — Tune authentication controls so access is limited after repeated failed attempts.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org