Skip to main content
iskandar_lie
Staff
Staff
October 11, 2022

Technical Tip: Fix CLI console from FortiGate GUI

  • October 11, 2022
  • 0 replies
  • 53740 views
Description This article describes how to fix CLI console when it's not accessible from FortiGate GUI.
Scope

FortiGate.

Solution

Scenario:

  1. The administrator is able to access and log in to the GUI.
  2. SSH is accessible via the terminal.
  3. When CLI is opened from the GUI, it is not responding, showing the error 'Connection lost. Enter to start a new session.'

iskandar_lie_0-1665431261827.png

 

  1. Access the CLI via SSH: Technical Tip: How to connect to FortiGate using SSHChange the 'admin-sport' in global settings. Make sure that the port does not have a port conflict (SSL VPN, VIP and other services). In this case, 443 --> 4443:

sport.PNG

 

It will now be possible to close the GUI and log back in using the new admin-sport.

 

new sport.PNG

 

Clear the browsing history of the browser, and restart it. It should work fine. If not, try another browser or open a new incognito tab on the preferred browser.

 

  1. Restart httpsd daemon.

fnsysctl killall httpsd

 

  1. Change the admin-server certificate in the system global settings.

cert.PNG

 

If the issue persists, contact Fortinet TAC for further assistance.

 

Related documents:

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.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!