FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
spathak
Staff
Staff
Article Id 193561

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.

 
 

Screenshot 2024-09-25 124403.png