Created on
02-23-2015
07:45 AM
Edited on
01-06-2025
01:35 AM
By
Jean-Philippe_P
Description
Solution
Enable SSH admin access on the interface From CLI:
config system interface
edit <interfacename>
set allowaccess ssh -> If there are already existing ping or HTTPS make sure to include 'set allowaccess ping https ssh'.
next
end
Example:
Discovery-kvm81 # config system interface
Discovery-kvm81 (interface) # edit port2
Discovery-kvm81 (port2) # set allowaccess ping https ssh --> ping and https are already existing protocols added ssh
Discovery-kvm81 (port2) # end
Download an SSH client such as PuTTy (using PuTTy is explained in the following steps).
Launch PuTTY and:
Putty Configuration -> Session: Specify IP and port (usually port 22), Connection Type: SSH.
Go to 'Session -> Logging' and under 'session logging', enable 'printable output'.
Choose a location for the log file under 'Log file name'.
Select Open to connect to FortiGate.
Log into the FortiGate, and execute the CLI commands.
Close PuTTY (or disable logging) and attach the log file to the ticket.
Related article:
Technical Tip: How to create a log file of a session using PuTTY
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.