Skip to main content
cmaheu
Staff
Staff
December 23, 2019

Technical Tip: Modify Telnet and SSH port settings for device models

Description

 
This article describes that by default, modeled devices are accessed via CLI using SSH port 22 and Telnet port 23. Configure the appliance to use different ports for SSH and Telnet access. 

Scope
 
FortiNAC.

Solution
 
There are two methods of implementation:
  • Global: Applies to all device models in Topology and persists through a product upgrade. 
    CLI access is required for configuration. It requires a system restart to apply changes. Contact Support for assistance. 

 

Instructions:
 
  1. Log in to CLI and modify the following file:

/bsc/campusMgr/master_loader/.masterPropertyFile

 
Add the following content and save:
 
FILE_NAME=./properties_plugin/telnetServer.properties

{
com.bsc.plugin.telnet.TelnetServer.telnetPort=23
com.bsc.plugin.telnet.TelnetServer.sshPort=22
}

 

  1. Restart processes to apply changes.

     
shutdownNAC
 
<wait 30 sec>
 
startupNAC



  • Per Model: Applies to individual device models in Topology and persists through a product upgrade. 

CLI access is required for configuration. It does not require a system restart to apply changes. Contact Support for assistance. 


Instructions:
 

Login to CLI and run the following command:
 

Device -setAttr -ip <device IP> -name SSH_Port -value 4422

 

It does not require a system restart.

On FortiNAC-F the above commands needs to be executed on shell using the following command:


execute enter-shell

 

Related article:

Technical Note: Modify Telnet and SSH port settings for device models

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT