Description
This article describes the reasons for a failed Admin login on FortiGate or an unsuccessful login on the FortiGate GUI.
Scope
FortiOS.
Solution
This issue is observed when someone attempts to log in to the FortiGate device using administrative credentials, but the login is unsuccessful.
This could be due to various reasons, such as an incorrect username or password, or because FortiGate considered the login attempt as potentially malicious.
To narrow down the cause of the issue:
By default, the number of password retry attempts is set to three, allowing the administrator a maximum of three attempts at logging in to their account before they are locked out for a set amount of time (by default, 60 seconds).
Check the following configuration to see the lockout options:
config system global
set admin-lockout-threshold <failed_attempts>
set admin-lockout-duration <seconds>
end
Implement Two-Factor Authentication (2FA): Enable two-factor authentication for FortiGate administrators to add an extra layer of security. This can help prevent unauthorized access even if login credentials are compromised.
In v7.4.4 and v7.2.8, go to System -> Administrators.
To configure this in the CLI, see: Add FortiToken multi-factor authentication.
In addition to the above troubleshooting:
Ensure that the admin account is not administratively restricted by certain session limits. If multiple administrators are sharing the same credentials, check whether the admin account has session limits configured that could be causing login issues. Refer to the following articles for more details:
How to set a maximum number of logged-in administrators
Restricting multiple admin sessions from the same admin user
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.