telnet |
Runs an interactive shell session on a remote host running the telnet daemon.
telnet [hostname [portnumber] ]
Starts a client-side telnet session by opening a Microsoft telnet shell within the command shell on the local machine.
hostname is the name (DNS or NetBIOS, depending on the network) or IP address of the remote telnet server. If hostname is omitted, the telnet client starts but doesn't connect to a telnet server (use the open command in that case to connect).
portnumber is required only if the default port (TCP port 23) isn't used by the telnet server.
Terminates the current telnet session but keeps the telnet shell open on the client
Displays the operating parameters (see set option later in this list)
Establishes a connection with a telnet server
Exits the telnet shell and returns to the command prompt
Enables different settings, specifically :
Authenticates telnet sessions using NTLM (challenge/response) authentication
Displays typed keystrokes on the screen
Specifies the terminal mode to use
Sends both a carriage return and linefeed when Enter is pressed
Displays the status of the connection
Disables different settings, specifically:
Authenticates telnet sessions using basic authentication (clear text) instead of NTLM (challenge/response) authentication
Causes typed keystrokes not to be displayed on the screen
Sends only a carriage return (and not a carriage return plus a linefeed) when Enter is pressed
Start the telnet client on the local machine:
C:\> telnet Microsoft (R) WS2003 Welcome to Microsoft Telnet Client Telnet Client Build 5.00.99201.1 Escape Character is 'CTRL+]' Microsoft Telnet>
Display the current client settings:
Microsoft Telnet> display Escape Character is 'CTRL+]' WILL AUTH (NTLM Authentication) LOCAL_ECHO off Sending both CR & LF WILL TERM TYPE Preferred Term Type is ANSI
Open a session with the telnet server 172.16.11.100:
Microsoft Telnet> open 172.16.11.100 *= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Welcome to Microsoft Telnet Server. *= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = C:\>
Determine the IP address configuration of the remote telnet server:
C:\> ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : bach Primary DNS Suffix . . . . . . . : mtitworld.com Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : mtitworld.com Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : NE2000 Compatible Physical Address. . . . . . . . . : 00-40-95-D1-29-6C DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 172.16.11.100 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 172.16.11.1 DNS Servers . . . . . . . . . . . : 172.16.11.100 172.16.11.104 Primary WINS Server . . . . . . . : 172.16.11.50
Unlike NT before it, WS2003 includes a telnet service and can function as a telnet server that provides a new way of performing remote administration on WS2003 servers. Note that the telnet service must be manually started on the server or have its startup setting changed to Automatic before a telnet client can connect to it.
While the telnet client on NT was a GUI utility ( telnet.exe ), the WS2003 version runs in console mode instead. This client also supports NTLM authentication to provide more secure authentication between telnet clients and servers. However, one feature that was provided by the GUI telnet.exe on NT, which isn't supported in the new command-line version, is session logging.
rcp , rexec , rsh