< Home

telnet server port

Function

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.

Format

telnet server port port-number

undo telnet server port

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Set the listening port number to 1026.

<HUAWEI> system-view
[HUAWEI] telnet server port 1026
# Restore the listening port number to the default value.
<HUAWEI> system-view
[HUAWEI] undo telnet server port
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic