Technical Tip: How to customize global admin SSH and telnet port
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.

