Skip to main content
sjoshi
Staff
Staff
April 4, 2025

Troubleshooting Tip: Authentication general script using Tera Term

  • April 4, 2025
  • 0 replies
  • 516 views
Description

 

This article describes how to troubleshoot and create a general authentication script using Tera Term.

 

Scope

 

FortiOS.

 

Solution

 

The following script is designed to gather relevant debug information related to authentication issues. Issues may be encountered where user authentication sessions get timed out intermittently or experience authentication failure. A script can be used to capture logs automatically. This will help ensure that all necessary data is collected in advance before opening a case with TAC.

 

Refer to Troubleshooting Tip: Preparing windows machine to run Teraterm scripts for instructions on how to use Tera Term.

 

Note:

 

If the script logs out automatically, try increasing the login timeout duration using the following command:


config system global
    set admin-ssh-grace-time <number_of_seconds> <max 3600 seconds>

    set admintimeout  <number_of_minutes< << max 480 minutes
end

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!