Skip to main content
spathak
Staff
Staff
April 21, 2020

Technical Tip: How to customize global admin SSH and telnet port

  • April 21, 2020
  • 0 replies
  • 9459 views

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