In network management, our administrator is often confused about the changes to the Telnet port. Here, we will explain the setup problems in this regard. In this article, we will introduce the specific command operations and hope to help you.
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C: \ Documents and Settings \ meizu fashion> tlntadmn
This is the command for viewing telnet settings.
The following figure shows the result.
The settings on localhost are as follows:
The Alt key has been mapped to 'ctrl + a': YES
Idle session timeout: 1 hours
Maximum number of connections: 2
Telnet port: 23
The port number is 23.
Maximum number of failed logon attempts: 3
End the task upon disconnection: YES
Operation Mode: Console
Authentication Mechanism: NTLM, Password
Default domain: MS-68BAB49808BB
Status: Stopped
C: \ Documents and Settings \ meizu fashion> tlntadmn /?
You can use a question mark to check the usage of this command.
Usage: tlntadmn [computer name] [common_options] start | stop | pause | continue
|-S |-k |-m | config config_options
All sessions use 'all '.
-S sessionid lists session information.
-K sessionid: Terminate the session.
-M sessionid: send a message to the session.
Configure the Telnet server parameters in config.
Common_options:
-U user specifies the user whose creden are to be used
-P password: User password
Config_options:
Dom = domain: Set the user's default domain
Ctrlakeymap = yes | no sets the ALT ing of the ALT key
Timeout = hh: mm: ss: Set the idle session timeout value
Timeoutactive = yes | no enables idle sessions.
Maxfail = attempts set the number of logon attempts that failed before disconnection.
Maxconn = connections sets the maximum number of connections.
Port = number: Set the Telnet port.
Sec = [+/-] NTLM [+/-] passwd
Set the authentication authority
Mode = console | stream specifies the operation mode.
C: \ Documents and Settings \ meizu fashion> tlntadmn config port 32
The command that sets telnet port to 32 is successfully updated.
Prompt: the setting is successful.
C: \ Documents and Settings \ meizu fashion> tlntadmn
View telnet settings again
The settings on localhost are as follows:
The Alt key has been mapped to 'ctrl + a': YES
Idle session timeout: 1 hours
Maximum number of connections: 2
Telnet port: 32
Check again and the port is changed to 32, indicating that the setting is successful.
Maximum number of failed logon attempts: 3
End the task upon disconnection: YES
Operation Mode: Console
Authentication Mechanism: NTLM, Password
Default domain: MS-68BAB49808BB
Status: Stopped
C: \ Documents and Settings \ meizu fashion> tlntadmn config port 23
This is the command I changed back to the original settings.
Update set successfully.
C: \ Documents and Settings \ meizu fashion>