Created on
04-21-2020
03:20 AM
Edited on
09-25-2024
09:43 PM
By
Jean-Philippe_P
Description
This article describes how to customize the global admin SSH and telnet port number.
Scope
FortiGate.
Solution
Generally, the admin uses SSH and telnet ports as standard 22 and 23 respectively.
To customize these ports, use the following commands:
FortiGate with Vdoms.
For SSH.
config system global
set admin-ssh-port <number> port range 1-65535, default 22
end
For Telnet.
config system global
set admin-telnet-port <number> port range 1-65535, default 23
end
FortiGate with VDOM enable.
For SSH.
config global
config system global
set admin-ssh-port <number> port range 1-65535, default 22
end
For Telnet.
config global
config system global
set admin-telnet-port <number> port range 1-65535, default 23
end
From the GUI also the ports can be customized:
System -> Settings -> Administration Settings.
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.