The telnet(1w) Windows command-line utility is used to
communicate with a remote computer using the Telnet protocol. The
host argument specifies the name or Internet Protocol (IP)
address of the computer to connect to, and port specifies
the port number to be used (by default, 23). If telnet is
run without the host argument, it enters command mode,
indicated by its prompt (telnet). In this mode, it
accepts and runs the Telnet commands listed later in this topic. To
enter command mode while connected to a remote computer, type the
escape-key sequence (by default, CTRL+]).
The telnet command accepts the following options:
-eescapeChar
The character used to enter the Telnet command prompt.
-flogfile
Specifies the name of the file to which the Telnet log is
written for this session. If you do not specify the path of the
file, it is created in your current directory.
-luser
The user name to use in logging onto a remote system. The
remote system must support the ENVIRON option.
-tterm
The type of terminal to use for the connection. Supported
terminal types are VT100, VT52, ANSI, and VTNT.
-a
Attempts automatic log on. Same as the -l
option, except that the current user's name is used to log on.
-h
Displays Help information.
Telnet commands
The following commands can be used when telnet is in
command mode. The portion of the command name outside the square
brackets ([]) is the shortest required form of the command.
c[lose]
Closes the current connection.
d[isplay]
Displays operating parameters.
o[pen] host [port]
Connects to host on the specified port (port 23 by
default). The host argument can be the name or IP address of
the remote computer.
q[uit]
Quits Telnet.
setoption
Sets one of the following options:
bsasdel
Backspace will be sent as delete.
codesetoption
Available only when the user locale is set to Japanese. Set the
current code set to option, which can be one of the
following:
Shift JIS
Japanese EUC
JIS Kanji
JIS Kanji (78)
DEC Kanji
NEC Kanji
The same code set should be set on the remote computer. By default,
Telnet Client uses a raster font. Before accessing a remote
computer using one of these code sets, you must configure Telnet
Client to use a TrueType font to ensure that characters will
display properly. For more information, see Configure Telnet Client
to use a TrueType font.
crlf
New-line mode; causes the RETURN key to send 0x0D, 0x0A.
delasbs
Delete will be sent as backspace.
escapecharacter
The escape character to enter Telnet client prompt.
localecho
Turns on localecho.
logfilename
The name of the client log file.
logging
Turns on logging for this session.
mode {console | stream}
The mode of operation.
ntlm
Turns on NTLM authentication.
term
{ansi | vt100 | vt52 | vtnt}
The type of terminal you want telnet to emulate.
sen[d] argument
Sends a command or string to the server. If argument is
a recognized command, it is sent as such; otherwise, it is sent as
a string. The following commands are recognized:
ao
Abort output command
ayt
"Are you there?"command
brk
Sends the brk (break) command.
esc
Current escape character
ip
Interrupt process command
synch
Telnet synchronization operation
st[atus]
Displays status information.
u[nset] option
Turns off an option previously set using the set
command.