Skip to main content
jkoay
Staff & Editor
Staff & Editor
Nov 11, 2020 10:51 AM UTC

Technical Tip: Alternative method to obtain admin account’s SMS two factor authentication activation code

  • Apr 16, 2026 12:20 PM UTC
  • 0 replies
  • 2267 views
  • Translate All

Description

 

A FortiGate with no valid SMS quota can cause login issues when SMS two factor authentication is accidentally enabled in the FortiGate’s admin account.

This article describes an alternative method to obtain admin account’s SMS two factor authentication activation code.

 

Scope

 

FortiGate.

Solution

 

  1. Access the FortiGate via console cable.

  2. In the CLI console, execute the following commands:

diag debug reset
diag debug disable
diag debug app forticldd 255
diag fortitoken debug enable
diag debug enable

 

  1. Login to FortiGate with an alternative super_admin account. Access to System -> Administrator, select admin account that was configured with SMS two factor authentication and select 'Send SMS Activation Code'.

  2. Similar output on the console with FortiToken activation code being sent out will be visible

 

 
  1. Activate the two-factor authentication via FortiToken Mobile Application with the activation code obtained from CLI console.

  2. To disable debugs:

 

diag debug disable

 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024