The telnet server port command configures a listening port number for a Telnet server.
The undo telnet server port command restores the default listening port of a Telnet server.
The default listening port of a Telnet server is 23.
Parameter | Description | Value |
---|---|---|
port-number | Specifies the listening port number of a Telnet server. | The value is an integer that is 23 or ranges from 1025 to 55535. The default value 23 is the standard Telnet server port number. |
Usage Scenario
To prevent attackers from attacking the standard Telnet listening port number, run the telnet server port command to configure a new listening port. This improves security.
Precautions
If the server is listening on port 23, the Telnet client can log in successfully with no port specified. If the server is listening on another port, the port number must be specified.
Before changing the current port number, disconnect all devices from the port. After the port number is changed, the server starts to listen on the new port.