2297 lines
33 KiB
HTML
2297 lines
33 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of TELNET</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>TELNET</H1>
|
|
Section: User Commands (1)<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
<BR>BSD mandoc<BR>
|
|
Linux NetKit (0.17)
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
<B>telnet</B>
|
|
|
|
- user interface to the
|
|
|
|
<B>TELNET</B>
|
|
|
|
protocol
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>telnet</B>
|
|
|
|
[-<B>468ELadr</B>
|
|
|
|
]
|
|
|
|
[-<B>S </B><I>tos</I>
|
|
|
|
|
|
|
|
]
|
|
|
|
[-<B>b </B><I>address</I>
|
|
|
|
|
|
|
|
]
|
|
|
|
[-<B>e </B><I>escapechar</I>
|
|
|
|
|
|
|
|
]
|
|
|
|
[-<B>l </B><I>user</I>
|
|
|
|
|
|
|
|
]
|
|
|
|
[-<B>n </B><I>tracefile</I>
|
|
|
|
|
|
|
|
]
|
|
|
|
[<I>host</I>
|
|
|
|
|
|
[<I>port</I>
|
|
|
|
]
|
|
|
|
]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>telnet</B>
|
|
|
|
command
|
|
is used for interactive communication with another host using the
|
|
<B>TELNET</B>
|
|
|
|
protocol. It begins in command mode, where it prints a telnet prompt
|
|
("telnet> "). If
|
|
<B>telnet</B>
|
|
|
|
is invoked with a
|
|
<I>host</I>
|
|
|
|
argument, it performs an
|
|
<B>open</B>
|
|
|
|
command implicitly; see the description below.
|
|
<P>
|
|
|
|
Options:
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="1"><B>-4</B>
|
|
|
|
|
|
<DD>
|
|
Force IPv4 address resolution.
|
|
<DT id="2"><B>-6</B>
|
|
|
|
|
|
<DD>
|
|
Force IPv6 address resolution.
|
|
<DT id="3"><B>-8</B>
|
|
|
|
|
|
<DD>
|
|
Request 8-bit operation. This causes an attempt to negotiate the
|
|
<B>TELNET BINARY</B>
|
|
|
|
option for both input and output. By default telnet is not 8-bit
|
|
clean.
|
|
<DT id="4"><B>-E</B>
|
|
|
|
|
|
<DD>
|
|
Disables the escape character functionality; that is, sets the escape
|
|
character to ``no character''.
|
|
<DT id="5"><B>-L</B>
|
|
|
|
|
|
<DD>
|
|
Specifies an 8-bit data path on output. This causes the
|
|
<B>TELNET BINARY </B>
|
|
|
|
option to be negotiated on just output.
|
|
<DT id="6"><B>-a</B>
|
|
|
|
|
|
<DD>
|
|
Attempt automatic login. Currently, this sends the user name via the
|
|
<B>USER</B>
|
|
|
|
variable
|
|
of the
|
|
<B>NEW-ENVIRON</B>
|
|
|
|
option if supported by the remote system. The username is retrieved
|
|
via
|
|
<A HREF="/cgi-bin/man/man2html?3+getlogin">getlogin</A>(3).
|
|
|
|
|
|
<DT id="7"><B>-b </B><I>address</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Use <A HREF="/cgi-bin/man/man2html?2+bind">bind</A>(2) on the local socket to bind it to a specific local address.
|
|
<DT id="8"><B>-d</B>
|
|
|
|
|
|
<DD>
|
|
Sets the initial value of the
|
|
<B>debug</B>
|
|
|
|
toggle to
|
|
<B>TRUE.</B>
|
|
|
|
<DT id="9"><B>-r</B>
|
|
|
|
|
|
<DD>
|
|
Emulate
|
|
<A HREF="/cgi-bin/man/man2html?1+rlogin">rlogin</A>(1).
|
|
|
|
|
|
In this mode, the default escape character is a tilde. Also, the
|
|
interpretation of the escape character is changed: an escape character
|
|
followed by a dot causes
|
|
<B>telnet </B>
|
|
|
|
to disconnect from the remote host. A ^Z instead of a dot suspends
|
|
<B>telnet</B>
|
|
|
|
|
|
and a ^] (the default
|
|
<B>telnet</B>
|
|
|
|
escape character) generates a normal telnet prompt. These codes are
|
|
accepted only at the beginning of a line.
|
|
<DT id="10"><B>-S </B><I>tos</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Sets the IP type-of-service (TOS) option for the telnet
|
|
connection to the value
|
|
<I>tos</I>
|
|
|
|
|
|
<DT id="11"><B>-e </B><I>escapechar</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Sets the escape character to
|
|
<I>escapechar.</I>
|
|
|
|
If no character is supplied, no escape character will be used.
|
|
Entering the escape character while connected causes telnet to drop to
|
|
command mode.
|
|
<DT id="12"><B>-l </B><I>user</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Specify
|
|
<I>user</I>
|
|
|
|
as the user to log in as on the remote system. This is accomplished by
|
|
sending the specified name as the
|
|
<B>USER</B>
|
|
|
|
environment variable, so it requires that the remote system support the
|
|
<B>TELNET NEW-ENVIRON</B>
|
|
|
|
option. This option implies the
|
|
-<B>a</B>
|
|
|
|
option, and may also be used with the
|
|
<B>open</B>
|
|
|
|
command.
|
|
<DT id="13"><B>-n </B><I>tracefile</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Opens
|
|
<I>tracefile</I>
|
|
|
|
for recording trace information.
|
|
See the
|
|
<B>set tracefile</B>
|
|
|
|
command below.
|
|
<DT id="14"><B></B><I>host</I>
|
|
|
|
|
|
<DD>
|
|
Specifies a host to contact over the network.
|
|
<DT id="15"><B></B><I>port</I>
|
|
|
|
|
|
<DD>
|
|
Specifies a port number or service name to contact. If not specified,
|
|
the
|
|
<B>telnet</B>
|
|
|
|
port (23) is used.
|
|
</DL>
|
|
<P>
|
|
|
|
<P>
|
|
|
|
Protocol:
|
|
<P>
|
|
|
|
Once a connection has been opened,
|
|
<B>telnet</B>
|
|
|
|
will attempt to enable the
|
|
<B>TELNET LINEMODE</B>
|
|
|
|
option.
|
|
If this fails, then
|
|
<B>telnet</B>
|
|
|
|
will revert to one of two input modes:
|
|
either “character at a time”
|
|
or “old line by line”
|
|
depending on what the remote system supports.
|
|
<P>
|
|
|
|
When
|
|
<B>LINEMODE</B>
|
|
|
|
is enabled, character processing is done on the
|
|
local system, under the control of the remote system. When input
|
|
editing or character echoing is to be disabled, the remote system
|
|
will relay that information. The remote system will also relay
|
|
changes to any special characters that happen on the remote
|
|
system, so that they can take effect on the local system.
|
|
<P>
|
|
|
|
In “character at a time” mode, most
|
|
text typed is immediately sent to the remote host for processing.
|
|
<P>
|
|
|
|
In “old line by line” mode, all text is echoed locally,
|
|
and (normally) only completed lines are sent to the remote host.
|
|
The “local echo character” (initially “^E”) may be used
|
|
to turn off and on the local echo
|
|
(this would mostly be used to enter passwords
|
|
without the password being echoed).
|
|
<P>
|
|
|
|
If the
|
|
<B>LINEMODE</B>
|
|
|
|
option is enabled, or if the
|
|
<B>localchars</B>
|
|
|
|
toggle is
|
|
<B>TRUE</B>
|
|
|
|
(the default for “old line by line“; see below),
|
|
the user's
|
|
<B>quit </B>
|
|
|
|
|
|
<B>intr</B>
|
|
|
|
|
|
and
|
|
<B>flush</B>
|
|
|
|
characters are trapped locally, and sent as
|
|
<B>TELNET</B>
|
|
|
|
protocol sequences to the remote side.
|
|
If
|
|
<B>LINEMODE</B>
|
|
|
|
has ever been enabled, then the user's
|
|
<B>susp</B>
|
|
|
|
and
|
|
<B>eof</B>
|
|
|
|
are also sent as
|
|
<B>TELNET</B>
|
|
|
|
protocol sequences,
|
|
and
|
|
<B>quit</B>
|
|
|
|
is sent as a
|
|
<B>TELNET ABORT</B>
|
|
|
|
instead of
|
|
<B>BREAK</B>
|
|
|
|
There are options (see
|
|
<B>toggle</B>
|
|
|
|
<B>autoflush</B>
|
|
|
|
and
|
|
<B>toggle</B>
|
|
|
|
<B>autosynch</B>
|
|
|
|
below)
|
|
which cause this action to flush subsequent output to the terminal
|
|
(until the remote host acknowledges the
|
|
<B>TELNET</B>
|
|
|
|
sequence) and flush previous terminal input
|
|
(in the case of
|
|
<B>quit</B>
|
|
|
|
and
|
|
<B>intr )</B>
|
|
|
|
|
|
<P>
|
|
|
|
Commands:
|
|
<P>
|
|
|
|
The following
|
|
<B>telnet</B>
|
|
|
|
commands are available. Unique prefixes are understood as abbreviations.
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="16"><B>auth </B><I>argument ... </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
The
|
|
<B>auth</B>
|
|
|
|
command controls the
|
|
<B>TELNET AUTHENTICATE</B>
|
|
|
|
protocol option. If
|
|
<B>telnet</B>
|
|
|
|
was compiled without authentication, the
|
|
<B>auth</B>
|
|
|
|
command will not be supported.
|
|
Valid arguments are as follows:
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="17"><B>disable </B><I>type</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Disable the specified type of authentication. To
|
|
obtain a list of available types, use the
|
|
<B>auth disable ?</B>
|
|
|
|
command.
|
|
<DT id="18"><B>enable </B><I>type</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Enable the specified type of authentication. To
|
|
obtain a list of available types, use the
|
|
<B>auth enable ?</B>
|
|
|
|
command.
|
|
<DT id="19"><B>status</B>
|
|
|
|
|
|
<DD>
|
|
List the current status of the various types of
|
|
authentication.
|
|
</DL>
|
|
<P>
|
|
|
|
<P>
|
|
|
|
Note that the current version of
|
|
<B>telnet</B>
|
|
|
|
does not support authentication.
|
|
<DT id="20"><B>close</B>
|
|
|
|
|
|
<DD>
|
|
Close the connection to the remote host, if any, and return to command
|
|
mode.
|
|
<DT id="21"><B>display </B><I>argument ... </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Display all, or some, of the
|
|
<B>set</B>
|
|
|
|
and
|
|
<B>toggle</B>
|
|
|
|
values (see below).
|
|
<DT id="22"><B>encrypt </B><I>argument ...</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
The encrypt command controls the
|
|
<B>TELNET ENCRYPT</B>
|
|
|
|
protocol option. If
|
|
<B>telnet</B>
|
|
|
|
was compiled without encryption, the
|
|
<B>encrypt</B>
|
|
|
|
command will not be supported.
|
|
<P>
|
|
|
|
Valid arguments are as follows:
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="23"><B>disable </B><I>type </I><B>[input|output]</B>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Disable the specified type of encryption. If you do not specify input
|
|
or output, encryption of both is disabled. To obtain a list of
|
|
available types, use ``encrypt disable ?''.
|
|
<DT id="24"><B>enable </B><I>type </I><B>[input|output]</B>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Enable the specified type of encryption. If you do not specify input
|
|
or output, encryption of both is enabled. To obtain a list of
|
|
available types, use ``encrypt enable ?''.
|
|
<DT id="25"><B>input</B>
|
|
|
|
|
|
<DD>
|
|
This is the same as ``encrypt start input''.
|
|
<DT id="26"><B>-input</B>
|
|
|
|
|
|
<DD>
|
|
This is the same as ``encrypt stop input''.
|
|
<DT id="27"><B>output</B>
|
|
|
|
|
|
<DD>
|
|
This is the same as ``encrypt start output''.
|
|
<DT id="28"><B>-output</B>
|
|
|
|
|
|
<DD>
|
|
This is the same as ``encrypt stop output''.
|
|
<DT id="29"><B>start [input|output]</B>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Attempt to begin encrypting. If you do not specify input or output,
|
|
encryption of both input and output is started.
|
|
<DT id="30"><B>status</B>
|
|
|
|
|
|
<DD>
|
|
Display the current status of the encryption module.
|
|
<DT id="31"><B>stop [input|output]</B>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Stop encrypting. If you do not specify input or output, encryption of
|
|
both is stopped.
|
|
<DT id="32"><B>type </B><I>type</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Sets the default type of encryption to be used with later ``encrypt start''
|
|
or ``encrypt stop'' commands.
|
|
</DL>
|
|
<P>
|
|
|
|
<P>
|
|
|
|
Note that the current version of
|
|
<B>telnet</B>
|
|
|
|
does not support encryption.
|
|
<DT id="33"><B>environ </B><I>arguments... </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
The
|
|
<B>environ</B>
|
|
|
|
command is used to propagate environment variables across the
|
|
<B>telnet</B>
|
|
|
|
link using the
|
|
<B>TELNET NEW-ENVIRON</B>
|
|
|
|
protocol option.
|
|
All variables exported from the shell are defined, but only the
|
|
<B>DISPLAY</B>
|
|
|
|
and
|
|
<B>PRINTER</B>
|
|
|
|
variables are marked to be sent by default. The
|
|
<B>USER</B>
|
|
|
|
variable is marked to be sent if the
|
|
-<B>a</B>
|
|
|
|
or
|
|
-<B>l</B>
|
|
|
|
command-line options were used.
|
|
<P>
|
|
|
|
Valid arguments for the
|
|
<B>environ</B>
|
|
|
|
command are:
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="34"><B>define </B><I>variable value </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Define the variable
|
|
<I>variable</I>
|
|
|
|
to have a value of
|
|
<I>value.</I>
|
|
|
|
Any variables defined by this command are automatically marked for
|
|
propagation (``exported'').
|
|
The
|
|
<I>value</I>
|
|
|
|
may be enclosed in single or double quotes so
|
|
that tabs and spaces may be included.
|
|
<DT id="35"><B>undefine </B><I>variable </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Remove any existing definition of
|
|
<I>variable</I>
|
|
|
|
|
|
<DT id="36"><B>export </B><I>variable </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Mark the specified variable for propagation to the remote host.
|
|
<DT id="37"><B>unexport </B><I>variable </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Do not mark the specified variable for propagation to the remote
|
|
host. The remote host may still ask explicitly for variables that are
|
|
not exported.
|
|
<DT id="38"><B>list</B>
|
|
|
|
|
|
<DD>
|
|
List the current set of environment variables.
|
|
Those marked with a
|
|
<B>*</B>
|
|
|
|
will be propagated to the remote host. The remote host may still ask
|
|
explicitly for the rest.
|
|
<DT id="39"><B>?</B>
|
|
|
|
|
|
<DD>
|
|
Prints out help information for the
|
|
<B>environ</B>
|
|
|
|
command.
|
|
</DL>
|
|
<P>
|
|
|
|
<DT id="40"><B>logout</B>
|
|
|
|
|
|
<DD>
|
|
Send the
|
|
<B>TELNET LOGOUT</B>
|
|
|
|
protocol option to the remote host.
|
|
This command is similar to a
|
|
<B>close</B>
|
|
|
|
command. If the remote host does not support the
|
|
<B>LOGOUT</B>
|
|
|
|
option, nothing happens. But if it does, this command should cause it
|
|
to close the connection. If the remote side also supports the concept
|
|
of suspending a user's session for later reattachment, the logout
|
|
command indicates that the session should be terminated immediately.
|
|
<DT id="41"><B>mode </B><I>type </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
<I>Type</I>
|
|
|
|
is one of several options, depending on the state of the session.
|
|
<B>Telnet</B>
|
|
|
|
asks the remote host to go into the requested mode. If the remote host
|
|
says it can, that mode takes effect.
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="42"><B>character</B>
|
|
|
|
|
|
<DD>
|
|
Disable the
|
|
<B>TELNET LINEMODE</B>
|
|
|
|
option, or, if the remote side does not understand the
|
|
<B>LINEMODE</B>
|
|
|
|
option, then enter “character at a time“ mode.
|
|
<DT id="43"><B>line</B>
|
|
|
|
|
|
<DD>
|
|
Enable the
|
|
<B>TELNET LINEMODE</B>
|
|
|
|
option, or, if the remote side does not understand the
|
|
<B>LINEMODE</B>
|
|
|
|
option, then attempt to enter “old-line-by-line“ mode.
|
|
<DT id="44"><B>isig (-isig </B>
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Attempt to enable (disable) the
|
|
<B>TRAPSIG</B>
|
|
|
|
mode of the
|
|
<B>LINEMODE</B>
|
|
|
|
option.
|
|
This requires that the
|
|
<B>LINEMODE</B>
|
|
|
|
option be enabled.
|
|
<DT id="45"><B>edit (-edit </B>
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Attempt to enable (disable) the
|
|
<B>EDIT</B>
|
|
|
|
mode of the
|
|
<B>LINEMODE</B>
|
|
|
|
option.
|
|
This requires that the
|
|
<B>LINEMODE</B>
|
|
|
|
option be enabled.
|
|
<DT id="46"><B>softtabs (-softtabs </B>
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Attempt to enable (disable) the
|
|
<B>SOFT_TAB</B>
|
|
|
|
mode of the
|
|
<B>LINEMODE</B>
|
|
|
|
option.
|
|
This requires that the
|
|
<B>LINEMODE</B>
|
|
|
|
option be enabled.
|
|
<DT id="47"><B>litecho (-litecho </B>
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Attempt to enable (disable) the
|
|
<B>LIT_ECHO</B>
|
|
|
|
mode of the
|
|
<B>LINEMODE</B>
|
|
|
|
option.
|
|
This requires that the
|
|
<B>LINEMODE</B>
|
|
|
|
option be enabled.
|
|
<DT id="48"><B>?</B>
|
|
|
|
|
|
<DD>
|
|
Prints out help information for the
|
|
<B>mode</B>
|
|
|
|
command.
|
|
</DL>
|
|
<P>
|
|
|
|
<DT id="49"><B>
|
|
</B>
|
|
|
|
<B>open </B><I>host</I>
|
|
|
|
|
|
|
|
[[-<B>l</B>
|
|
|
|
]
|
|
|
|
|
|
<I>user</I>
|
|
|
|
<B></B>[-
|
|
|
|
|
|
|
|
|
|
]
|
|
<I>port </I>]
|
|
|
|
|
|
<DD>
|
|
|
|
<DD>Open a connection to the named host. If no port number is specified,
|
|
<B>telnet</B>
|
|
|
|
will attempt to contact a
|
|
<B>telnet</B>
|
|
|
|
daemon at the standard port (23).
|
|
The host specification may be a host name or IP address.
|
|
The
|
|
-<B>l</B>
|
|
|
|
option may be used to specify a user name to be passed to the remote
|
|
system, like the
|
|
-<B>l</B>
|
|
|
|
command-line option.
|
|
<P>
|
|
|
|
When connecting to ports other than the
|
|
<B>telnet</B>
|
|
|
|
port,
|
|
<B>telnet</B>
|
|
|
|
does not attempt
|
|
<B>telnet</B>
|
|
|
|
protocol negotiations. This makes it possible to connect to services
|
|
that do not support the
|
|
<B>telnet</B>
|
|
|
|
protocol without making a mess. Protocol negotiation can be forced by
|
|
placing a dash before the port number.
|
|
<P>
|
|
|
|
After establishing a connection, any commands associated with the
|
|
remote host in
|
|
/etc/telnetrc
|
|
|
|
and the user's
|
|
.telnetrc
|
|
|
|
file are executed, in that order.
|
|
<P>
|
|
|
|
The format of the telnetrc files is as follows: Lines beginning with a
|
|
#, and blank lines, are ignored. The rest of the file should consist
|
|
of hostnames and sequences of
|
|
<B>telnet</B>
|
|
|
|
commands to use with that host. Commands should be one per line,
|
|
indented by whitespace; lines beginning without whitespace are
|
|
interpreted as hostnames. Lines beginning with the special hostname
|
|
`DEFAULT'
|
|
|
|
will apply to all hosts. Hostnames including
|
|
`DEFAULT'
|
|
|
|
may be followed immediately by a colon and a port number or string.
|
|
If a port is specified it must match exactly with what is specified
|
|
on the command line. If no port was specified on the command line,
|
|
then the value
|
|
`telnet'
|
|
|
|
is used.
|
|
Upon connecting to a particular host, the
|
|
commands associated with that host are executed.
|
|
<DT id="50"><B>quit</B>
|
|
|
|
|
|
<DD>
|
|
Close any open session and exit
|
|
<B>telnet</B>
|
|
|
|
|
|
An end of file condition on input, when in command mode, will trigger
|
|
this operation as well.
|
|
<DT id="51"><B>send </B><I>arguments </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Send one or more special
|
|
<B>telnet</B>
|
|
|
|
protocol character sequences to the remote host. The following are
|
|
the codes which may be specified (more than one may be used in one
|
|
command):
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="52"><B>abort</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET ABORT</B>
|
|
|
|
(Abort Processes) sequence.
|
|
<DT id="53"><B>ao</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET AO</B>
|
|
|
|
(Abort Output) sequence, which should cause the remote system to flush
|
|
all output
|
|
<I>from</I>
|
|
|
|
the remote system
|
|
<I>to</I>
|
|
|
|
the user's terminal.
|
|
<DT id="54"><B>ayt</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET AYT</B>
|
|
|
|
(Are You There?) sequence, to which the remote system may or may not
|
|
choose to respond.
|
|
<DT id="55"><B>brk</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET BRK</B>
|
|
|
|
(Break) sequence, which may have significance to the remote
|
|
system.
|
|
<DT id="56"><B>ec</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET EC</B>
|
|
|
|
(Erase Character)
|
|
sequence, which should cause the remote system to erase the last character
|
|
entered.
|
|
<DT id="57"><B>el</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET EL</B>
|
|
|
|
(Erase Line)
|
|
sequence, which should cause the remote system to erase the line currently
|
|
being entered.
|
|
<DT id="58"><B>eof</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET EOF</B>
|
|
|
|
(End Of File)
|
|
sequence.
|
|
<DT id="59"><B>eor</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET EOR</B>
|
|
|
|
(End of Record)
|
|
sequence.
|
|
<DT id="60"><B>escape</B>
|
|
|
|
|
|
<DD>
|
|
Sends the current
|
|
<B>telnet</B>
|
|
|
|
escape character.
|
|
<DT id="61"><B>ga</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET GA</B>
|
|
|
|
(Go Ahead)
|
|
sequence, which likely has no significance to the remote system.
|
|
<DT id="62"><B>getstatus</B>
|
|
|
|
|
|
<DD>
|
|
If the remote side supports the
|
|
<B>TELNET STATUS</B>
|
|
|
|
command,
|
|
<B>getstatus</B>
|
|
|
|
will send the subnegotiation to request that the server send
|
|
its current option status.
|
|
<DT id="63"><B>ip</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET IP</B>
|
|
|
|
(Interrupt Process) sequence, which should cause the remote
|
|
system to abort the currently running process.
|
|
<DT id="64"><B>nop</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET NOP</B>
|
|
|
|
(No Operation)
|
|
sequence.
|
|
<DT id="65"><B>susp</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET SUSP</B>
|
|
|
|
(Suspend Process)
|
|
sequence.
|
|
<DT id="66"><B>synch</B>
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET SYNCH</B>
|
|
|
|
sequence.
|
|
This sequence causes the remote system to discard all previously typed
|
|
(but not yet read) input.
|
|
This sequence is sent as
|
|
<B>TCP</B>
|
|
|
|
urgent
|
|
data (and may not work if the remote system is a
|
|
BSD 4.2
|
|
system -- if
|
|
it doesn't work, a lower case “r” may be echoed on the terminal).
|
|
<DT id="67"><B>do </B><I>cmd</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
<DT id="68"><B>dont </B><I>cmd</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
<DT id="69"><B>will </B><I>cmd</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
<DT id="70"><B>wont </B><I>cmd</I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Sends the
|
|
<B>TELNET DO</B>
|
|
|
|
<I>cmd</I>
|
|
|
|
sequence.
|
|
<I>cmd</I>
|
|
|
|
can be either a decimal number between 0 and 255,
|
|
or a symbolic name for a specific
|
|
<B>TELNET</B>
|
|
|
|
command.
|
|
<I>cmd</I>
|
|
|
|
can also be either
|
|
<B>help</B>
|
|
|
|
or
|
|
<B>?</B>
|
|
|
|
to print out help information, including
|
|
a list of known symbolic names.
|
|
<DT id="71"><B>?</B>
|
|
|
|
|
|
<DD>
|
|
Prints out help information for the
|
|
<B>send</B>
|
|
|
|
command.
|
|
</DL>
|
|
<P>
|
|
|
|
<DT id="72"><B>set </B><I>argument value </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
<DT id="73"><B>unset </B><I>argument value </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
The
|
|
<B>set</B>
|
|
|
|
command will set any one of a number of
|
|
<B>telnet</B>
|
|
|
|
variables to a specific value or to
|
|
<B>TRUE</B>
|
|
|
|
|
|
The special value
|
|
<B>off</B>
|
|
|
|
turns off the function associated with
|
|
the variable. This is equivalent to using the
|
|
<B>unset</B>
|
|
|
|
command.
|
|
The
|
|
<B>unset</B>
|
|
|
|
command will disable or set to
|
|
<B>FALSE</B>
|
|
|
|
any of the specified variables.
|
|
The values of variables may be interrogated with the
|
|
<B>display</B>
|
|
|
|
command.
|
|
The variables which may be set or unset, but not toggled, are
|
|
listed here. In addition, any of the variables for the
|
|
<B>toggle</B>
|
|
|
|
command may be explicitly set or unset.
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="74"><B>ayt</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in localchars mode, or
|
|
<B>LINEMODE</B>
|
|
|
|
is enabled, and the status character is typed, a
|
|
<B>TELNET AYT</B>
|
|
|
|
sequence is sent to the remote host. The initial value for the "Are
|
|
You There" character is the terminal's status character.
|
|
<DT id="75"><B>echo</B>
|
|
|
|
|
|
<DD>
|
|
This is the value (initially “^E”) which, when in
|
|
“line by line” mode, toggles between doing local echoing
|
|
of entered characters (for normal processing), and suppressing
|
|
echoing of entered characters (for entering, say, a password).
|
|
<DT id="76"><B>eof</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is operating in
|
|
<B>LINEMODE</B>
|
|
|
|
or “old line by line” mode, entering this character
|
|
as the first character on a line will cause this character to be
|
|
sent to the remote system.
|
|
The initial value of the eof character is taken to be the terminal's
|
|
<B>eof</B>
|
|
|
|
character.
|
|
<DT id="77"><B>erase</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in
|
|
<B>localchars</B>
|
|
|
|
mode (see
|
|
<B>toggle</B>
|
|
|
|
<B>localchars</B>
|
|
|
|
below),
|
|
<B>and</B>
|
|
|
|
if
|
|
<B>telnet</B>
|
|
|
|
is operating in “character at a time” mode, then when this
|
|
character is typed, a
|
|
<B>TELNET EC</B>
|
|
|
|
sequence (see
|
|
<B>send</B>
|
|
|
|
<B>ec</B>
|
|
|
|
above)
|
|
is sent to the remote system.
|
|
The initial value for the erase character is taken to be
|
|
the terminal's
|
|
<B>erase</B>
|
|
|
|
character.
|
|
<DT id="78"><B>escape</B>
|
|
|
|
|
|
<DD>
|
|
This is the
|
|
<B>telnet</B>
|
|
|
|
escape character (initially “^]”) which causes entry
|
|
into
|
|
<B>telnet</B>
|
|
|
|
command mode (when connected to a remote system).
|
|
<DT id="79"><B>flushoutput</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in
|
|
<B>localchars</B>
|
|
|
|
mode (see
|
|
<B>toggle</B>
|
|
|
|
<B>localchars</B>
|
|
|
|
below)
|
|
and the
|
|
<B>flushoutput</B>
|
|
|
|
character is typed, a
|
|
<B>TELNET AO</B>
|
|
|
|
sequence (see
|
|
<B>send</B>
|
|
|
|
<B>ao</B>
|
|
|
|
above)
|
|
is sent to the remote host.
|
|
The initial value for the flush character is taken to be
|
|
the terminal's
|
|
<B>flush</B>
|
|
|
|
character.
|
|
<DT id="80"><B>forw1</B>
|
|
|
|
|
|
<DD>
|
|
<DT id="81"><B>forw2</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>TELNET</B>
|
|
|
|
is operating in
|
|
<B>LINEMODE</B>
|
|
|
|
|
|
these are the
|
|
characters that, when typed, cause partial lines to be
|
|
forwarded to the remote system. The initial value for
|
|
the forwarding characters are taken from the terminal's
|
|
eol and eol2 characters.
|
|
<DT id="82"><B>interrupt</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in
|
|
<B>localchars</B>
|
|
|
|
mode (see
|
|
<B>toggle</B>
|
|
|
|
<B>localchars</B>
|
|
|
|
below)
|
|
and the
|
|
<B>interrupt</B>
|
|
|
|
character is typed, a
|
|
<B>TELNET IP</B>
|
|
|
|
sequence (see
|
|
<B>send</B>
|
|
|
|
<B>ip</B>
|
|
|
|
above)
|
|
is sent to the remote host.
|
|
The initial value for the interrupt character is taken to be
|
|
the terminal's
|
|
<B>intr</B>
|
|
|
|
character.
|
|
<DT id="83"><B>kill</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in
|
|
<B>localchars</B>
|
|
|
|
mode (see
|
|
<B>toggle</B>
|
|
|
|
<B>localchars</B>
|
|
|
|
below),
|
|
<B>and</B>
|
|
|
|
if
|
|
<B>telnet</B>
|
|
|
|
is operating in “character at a time” mode, then when this
|
|
character is typed, a
|
|
<B>TELNET EL</B>
|
|
|
|
sequence (see
|
|
<B>send</B>
|
|
|
|
<B>el</B>
|
|
|
|
above)
|
|
is sent to the remote system.
|
|
The initial value for the kill character is taken to be
|
|
the terminal's
|
|
<B>kill</B>
|
|
|
|
character.
|
|
<DT id="84"><B>lnext</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is operating in
|
|
<B>LINEMODE</B>
|
|
|
|
or “old line by line“ mode, then this character is taken to
|
|
be the terminal's
|
|
<B>lnext</B>
|
|
|
|
character.
|
|
The initial value for the lnext character is taken to be
|
|
the terminal's
|
|
<B>lnext</B>
|
|
|
|
character.
|
|
<DT id="85"><B>quit</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in
|
|
<B>localchars</B>
|
|
|
|
mode (see
|
|
<B>toggle</B>
|
|
|
|
<B>localchars</B>
|
|
|
|
below)
|
|
and the
|
|
<B>quit</B>
|
|
|
|
character is typed, a
|
|
<B>TELNET BRK</B>
|
|
|
|
sequence (see
|
|
<B>send</B>
|
|
|
|
<B>brk</B>
|
|
|
|
above)
|
|
is sent to the remote host.
|
|
The initial value for the quit character is taken to be
|
|
the terminal's
|
|
<B>quit</B>
|
|
|
|
character.
|
|
<DT id="86"><B>reprint</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is operating in
|
|
<B>LINEMODE</B>
|
|
|
|
or “old line by line“ mode, then this character is taken to
|
|
be the terminal's
|
|
<B>reprint</B>
|
|
|
|
character.
|
|
The initial value for the reprint character is taken to be
|
|
the terminal's
|
|
<B>reprint</B>
|
|
|
|
character.
|
|
<DT id="87"><B>rlogin</B>
|
|
|
|
|
|
<DD>
|
|
This is the rlogin mode escape character. Setting it enables rlogin
|
|
mode, as with the
|
|
<I>r</I>
|
|
|
|
command-line option (q.v.)
|
|
<DT id="88"><B>start</B>
|
|
|
|
|
|
<DD>
|
|
If the
|
|
<B>TELNET TOGGLE-FLOW-CONTROL</B>
|
|
|
|
option has been enabled,
|
|
then this character is taken to
|
|
be the terminal's
|
|
<B>start</B>
|
|
|
|
character.
|
|
The initial value for the kill character is taken to be
|
|
the terminal's
|
|
<B>start</B>
|
|
|
|
character.
|
|
<DT id="89"><B>stop</B>
|
|
|
|
|
|
<DD>
|
|
If the
|
|
<B>TELNET TOGGLE-FLOW-CONTROL</B>
|
|
|
|
option has been enabled,
|
|
then this character is taken to
|
|
be the terminal's
|
|
<B>stop</B>
|
|
|
|
character.
|
|
The initial value for the kill character is taken to be
|
|
the terminal's
|
|
<B>stop</B>
|
|
|
|
character.
|
|
<DT id="90"><B>susp</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is in
|
|
<B>localchars</B>
|
|
|
|
mode, or
|
|
<B>LINEMODE</B>
|
|
|
|
is enabled, and the
|
|
<B>suspend</B>
|
|
|
|
character is typed, a
|
|
<B>TELNET SUSP</B>
|
|
|
|
sequence (see
|
|
<B>send</B>
|
|
|
|
<B>susp</B>
|
|
|
|
above)
|
|
is sent to the remote host.
|
|
The initial value for the suspend character is taken to be
|
|
the terminal's
|
|
<B>suspend</B>
|
|
|
|
character.
|
|
<DT id="91"><B>tracefile</B>
|
|
|
|
|
|
<DD>
|
|
This is the file to which the output, caused by
|
|
<B>netdata</B>
|
|
|
|
or
|
|
<B>option</B>
|
|
|
|
tracing being
|
|
<B>TRUE</B>
|
|
|
|
|
|
will be written. If it is set to
|
|
``-
|
|
|
|
''
|
|
|
|
|
|
then tracing information will be written to standard output (the default).
|
|
<DT id="92"><B>worderase</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>telnet</B>
|
|
|
|
is operating in
|
|
<B>LINEMODE</B>
|
|
|
|
or “old line by line“ mode, then this character is taken to
|
|
be the terminal's
|
|
<B>worderase</B>
|
|
|
|
character.
|
|
The initial value for the worderase character is taken to be
|
|
the terminal's
|
|
<B>worderase</B>
|
|
|
|
character.
|
|
<DT id="93"><B>?</B>
|
|
|
|
|
|
<DD>
|
|
Displays the legal
|
|
<B>set</B>
|
|
|
|
(<B>unset</B>
|
|
|
|
)
|
|
|
|
commands.
|
|
</DL>
|
|
<P>
|
|
|
|
<DT id="94"><B>slc </B><I>state </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
The
|
|
<B>slc</B>
|
|
|
|
command (Set Local Characters) is used to set
|
|
or change the state of the the special
|
|
characters when the
|
|
<B>TELNET LINEMODE</B>
|
|
|
|
option has
|
|
been enabled. Special characters are characters that get
|
|
mapped to
|
|
<B>TELNET</B>
|
|
|
|
commands sequences (like
|
|
<B>ip</B>
|
|
|
|
or
|
|
<B>quit </B>
|
|
|
|
|
|
or line editing characters (like
|
|
<B>erase</B>
|
|
|
|
and
|
|
<B>kill )</B>
|
|
|
|
|
|
By default, the local special characters are exported.
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="95"><B>check</B>
|
|
|
|
|
|
<DD>
|
|
Verify the current settings for the current special characters.
|
|
The remote side is requested to send all the current special
|
|
character settings, and if there are any discrepancies with
|
|
the local side, the local side will switch to the remote value.
|
|
<DT id="96"><B>export</B>
|
|
|
|
|
|
<DD>
|
|
Switch to the local defaults for the special characters. The
|
|
local default characters are those of the local terminal at
|
|
the time when
|
|
<B>telnet</B>
|
|
|
|
was started.
|
|
<DT id="97"><B>import</B>
|
|
|
|
|
|
<DD>
|
|
Switch to the remote defaults for the special characters.
|
|
The remote default characters are those of the remote system
|
|
at the time when the
|
|
<B>TELNET</B>
|
|
|
|
connection was established.
|
|
<DT id="98"><B>?</B>
|
|
|
|
|
|
<DD>
|
|
Prints out help information for the
|
|
<B>slc</B>
|
|
|
|
command.
|
|
</DL>
|
|
<P>
|
|
|
|
<DT id="99"><B>status</B>
|
|
|
|
|
|
<DD>
|
|
Show the current status of
|
|
<B>telnet</B>
|
|
|
|
|
|
This includes the name of the remote host, if any, as well as the
|
|
current mode.
|
|
<DT id="100"><B>toggle </B><I>arguments ... </I>
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Toggle (between
|
|
<B>TRUE</B>
|
|
|
|
and
|
|
<B>FALSE</B>
|
|
|
|
|
|
various flags that control how
|
|
<B>telnet</B>
|
|
|
|
responds to events.
|
|
These flags may be set explicitly to
|
|
<B>TRUE</B>
|
|
|
|
or
|
|
<B>FALSE</B>
|
|
|
|
using the
|
|
<B>set</B>
|
|
|
|
and
|
|
<B>unset</B>
|
|
|
|
commands.
|
|
More than one flag may be toggled at once.
|
|
The state of these flags may be examined with the
|
|
<B>display</B>
|
|
|
|
command.
|
|
Valid flags are:
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="101"><B>authdebug</B>
|
|
|
|
|
|
<DD>
|
|
Turns on debugging for the authentication code. This flag only exists
|
|
if authentication support is enabled.
|
|
<DT id="102"><B>autoflush</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>autoflush</B>
|
|
|
|
and
|
|
<B>localchars</B>
|
|
|
|
are both
|
|
<B>TRUE</B>
|
|
|
|
|
|
then when the
|
|
<B>ao </B>
|
|
|
|
|
|
or
|
|
<B>quit</B>
|
|
|
|
characters are recognized (and transformed into
|
|
<B>TELNET</B>
|
|
|
|
sequences; see
|
|
<B>set</B>
|
|
|
|
above for details),
|
|
<B>telnet</B>
|
|
|
|
refuses to display any data on the user's terminal
|
|
until the remote system acknowledges (via a
|
|
<B>TELNET TIMING MARK</B>
|
|
|
|
option)
|
|
that it has processed those
|
|
<B>TELNET</B>
|
|
|
|
sequences.
|
|
The initial value for this toggle is
|
|
<B>TRUE</B>
|
|
|
|
if the terminal user had not
|
|
done an "stty noflsh", otherwise
|
|
<B>FALSE</B>
|
|
|
|
(see
|
|
<A HREF="/cgi-bin/man/man2html?1+stty">stty</A>(1)).
|
|
|
|
|
|
<DT id="103"><B>autodecrypt</B>
|
|
|
|
|
|
<DD>
|
|
When the
|
|
<B>TELNET ENCRYPT</B>
|
|
|
|
option is negotiated, by
|
|
default the actual encryption (decryption) of the data
|
|
stream does not start automatically. The autoencrypt
|
|
(autodecrypt) command states that encryption of the
|
|
output (input) stream should be enabled as soon as
|
|
possible.
|
|
<P>
|
|
|
|
Note that this flag exists only if encryption support is enabled.
|
|
<DT id="104"><B>autologin</B>
|
|
|
|
|
|
<DD>
|
|
If the remote side supports the
|
|
<B>TELNET AUTHENTICATION</B>
|
|
|
|
option,
|
|
<B>telnet</B>
|
|
|
|
attempts to use it to perform automatic authentication. If the
|
|
<B>TELNET AUTHENTICATION</B>
|
|
|
|
option is not supported, the user's login name is propagated using the
|
|
<B>TELNET NEW-ENVIRON</B>
|
|
|
|
option.
|
|
Setting this flag is the same as specifying the
|
|
<I>a</I>
|
|
|
|
option to the
|
|
<B>open</B>
|
|
|
|
command or on the command line.
|
|
<DT id="105"><B>autosynch</B>
|
|
|
|
|
|
<DD>
|
|
If
|
|
<B>autosynch</B>
|
|
|
|
and
|
|
<B>localchars</B>
|
|
|
|
are both
|
|
<B>TRUE</B>
|
|
|
|
|
|
then when either the
|
|
<B>intr</B>
|
|
|
|
or
|
|
<B>quit</B>
|
|
|
|
characters is typed (see
|
|
<B>set</B>
|
|
|
|
above for descriptions of the
|
|
<B>intr</B>
|
|
|
|
and
|
|
<B>quit</B>
|
|
|
|
characters), the resulting
|
|
<B>telnet</B>
|
|
|
|
sequence sent is followed by the
|
|
<B>TELNET SYNCH</B>
|
|
|
|
sequence.
|
|
This procedure
|
|
<B>should</B>
|
|
|
|
cause the remote system to begin throwing away all previously
|
|
typed input until both of the
|
|
<B>telnet</B>
|
|
|
|
sequences have been read and acted upon.
|
|
The initial value of this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="106"><B>binary</B>
|
|
|
|
|
|
<DD>
|
|
Enable or disable the
|
|
<B>TELNET BINARY</B>
|
|
|
|
option on both input and output.
|
|
<DT id="107"><B>inbinary</B>
|
|
|
|
|
|
<DD>
|
|
Enable or disable the
|
|
<B>TELNET BINARY</B>
|
|
|
|
option on input.
|
|
<DT id="108"><B>outbinary</B>
|
|
|
|
|
|
<DD>
|
|
Enable or disable the
|
|
<B>TELNET BINARY</B>
|
|
|
|
option on output.
|
|
<DT id="109"><B>crlf</B>
|
|
|
|
|
|
<DD>
|
|
If this is
|
|
<B>TRUE</B>
|
|
|
|
|
|
then carriage returns will be sent as
|
|
<B><CR><LF></B>
|
|
|
|
|
|
If this is
|
|
<B>FALSE</B>
|
|
|
|
|
|
then carriage returns will be send as
|
|
<B><CR><NUL></B>
|
|
|
|
|
|
The initial value for this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="110"><B>crmod</B>
|
|
|
|
|
|
<DD>
|
|
Toggle carriage return mode.
|
|
When this mode is enabled, most carriage return characters received from
|
|
the remote host will be mapped into a carriage return followed by
|
|
a line feed.
|
|
This mode does not affect those characters typed by the user, only
|
|
those received from the remote host.
|
|
This mode is not very useful unless the remote host
|
|
only sends carriage return, but never line feed.
|
|
The initial value for this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="111"><B>debug</B>
|
|
|
|
|
|
<DD>
|
|
Toggles socket level debugging (useful only to the
|
|
<B>super user )</B>
|
|
|
|
|
|
The initial value for this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="112"><B>encdebug</B>
|
|
|
|
|
|
<DD>
|
|
Turns on debugging information for the encryption code.
|
|
Note that this flag only exists if encryption support is available.
|
|
<DT id="113"><B>localchars</B>
|
|
|
|
|
|
<DD>
|
|
If this is
|
|
<B>TRUE</B>
|
|
|
|
|
|
then the
|
|
<B>flush </B>
|
|
|
|
|
|
<B>interrupt</B>
|
|
|
|
|
|
<B>quit </B>
|
|
|
|
|
|
<B>erase</B>
|
|
|
|
|
|
and
|
|
<B>kill</B>
|
|
|
|
characters (see
|
|
<B>set</B>
|
|
|
|
above) are recognized locally, and transformed into (hopefully) appropriate
|
|
<B>TELNET</B>
|
|
|
|
control sequences
|
|
(respectively
|
|
<B>ao </B>
|
|
|
|
|
|
<B>ip</B>
|
|
|
|
|
|
<B>brk </B>
|
|
|
|
|
|
<B>ec</B>
|
|
|
|
|
|
and
|
|
<B>el </B>
|
|
|
|
|
|
see
|
|
<B>send</B>
|
|
|
|
above).
|
|
The initial value for this toggle is
|
|
<B>TRUE</B>
|
|
|
|
in “old line by line” mode,
|
|
and
|
|
<B>FALSE</B>
|
|
|
|
in “character at a time” mode.
|
|
When the
|
|
<B>LINEMODE</B>
|
|
|
|
option is enabled, the value of
|
|
<B>localchars</B>
|
|
|
|
is ignored, and assumed to always be
|
|
<B>TRUE</B>
|
|
|
|
|
|
If
|
|
<B>LINEMODE</B>
|
|
|
|
has ever been enabled, then
|
|
<B>quit</B>
|
|
|
|
is sent as
|
|
<B>abort </B>
|
|
|
|
|
|
and
|
|
<B>eof</B>
|
|
|
|
and
|
|
<B>suspend</B>
|
|
|
|
are sent as
|
|
<B>eof</B>
|
|
|
|
and
|
|
<B>susp</B>
|
|
|
|
|
|
see
|
|
<B>send</B>
|
|
|
|
above).
|
|
<DT id="114"><B>netdata</B>
|
|
|
|
|
|
<DD>
|
|
Toggles the display of all network data (in hexadecimal format).
|
|
The initial value for this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="115"><B>options</B>
|
|
|
|
|
|
<DD>
|
|
Toggles the display of some internal
|
|
<B>telnet</B>
|
|
|
|
protocol processing (having to do with
|
|
<B>telnet</B>
|
|
|
|
options).
|
|
The initial value for this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="116"><B>prettydump</B>
|
|
|
|
|
|
<DD>
|
|
When the
|
|
<B>netdata</B>
|
|
|
|
toggle is enabled, if
|
|
<B>prettydump</B>
|
|
|
|
is enabled the output from the
|
|
<B>netdata</B>
|
|
|
|
command will be formatted in a more user-readable format.
|
|
Spaces are put between each character in the output, and the
|
|
beginning of
|
|
<B>telnet</B>
|
|
|
|
escape sequences are preceded by a '*' to aid in locating them.
|
|
<DT id="117"><B>skiprc</B>
|
|
|
|
|
|
<DD>
|
|
When the skiprc toggle is
|
|
<B>TRUE</B>
|
|
|
|
|
|
<B>telnet</B>
|
|
|
|
does not read the telnetrc files. The initial value for this toggle is
|
|
<B>FALSE.</B>
|
|
|
|
<DT id="118"><B>termdata</B>
|
|
|
|
|
|
<DD>
|
|
Toggles the display of all terminal data (in hexadecimal format).
|
|
The initial value for this toggle is
|
|
<B>FALSE</B>
|
|
|
|
|
|
<DT id="119"><B>verbose_encrypt</B>
|
|
|
|
|
|
<DD>
|
|
When the
|
|
<B>verbose_encrypt</B>
|
|
|
|
toggle is
|
|
<B>TRUE</B>
|
|
|
|
|
|
<B>TELNET</B>
|
|
|
|
prints out a message each time encryption is enabled or
|
|
disabled. The initial value for this toggle is
|
|
<B>FALSE.</B>
|
|
|
|
This flag only exists if encryption support is available.
|
|
<DT id="120"><B>?</B>
|
|
|
|
|
|
<DD>
|
|
Displays the legal
|
|
<B>toggle</B>
|
|
|
|
commands.
|
|
</DL>
|
|
<P>
|
|
|
|
<DT id="121"><B>z</B>
|
|
|
|
|
|
<DD>
|
|
Suspend
|
|
<B>telnet </B>
|
|
|
|
|
|
This command only works when the user is using the
|
|
<A HREF="/cgi-bin/man/man2html?1+csh">csh</A>(1).
|
|
|
|
|
|
<DT id="122"><B>! </B>[<I>command </I>
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Execute a single command in a subshell on the local
|
|
system. If
|
|
<B>command</B>
|
|
|
|
is omitted, then an interactive subshell is invoked.
|
|
<DT id="123"><B>? </B>[<I>command </I>
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
<DD>
|
|
Get help. With no arguments,
|
|
<B>telnet</B>
|
|
|
|
prints a help summary.
|
|
If a command is specified,
|
|
<B>telnet</B>
|
|
|
|
will print the help information for just that command.
|
|
</DL>
|
|
<P>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<B>Telnet</B>
|
|
|
|
uses at least the
|
|
<B>HOME</B>
|
|
|
|
|
|
<B>SHELL</B>
|
|
|
|
|
|
<B>DISPLAY</B>
|
|
|
|
|
|
and
|
|
<B>TERM</B>
|
|
|
|
environment variables.
|
|
Other environment variables may be propagated
|
|
to the other side via the
|
|
<B>TELNET NEW-ENVIRON</B>
|
|
|
|
option.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="124"><B>/etc/telnetrc
|
|
|
|
</B>
|
|
<DD>
|
|
global telnet startup values
|
|
<DT id="125"><B>~/.telnetrc
|
|
|
|
</B>
|
|
<DD>
|
|
user customized telnet startup values
|
|
</DL>
|
|
<P>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>HISTORY</H2>
|
|
|
|
The
|
|
<B>Telnet</B>
|
|
|
|
command appeared in
|
|
BSD 4.2
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<P>
|
|
|
|
On some remote systems, echo has to be turned off manually when in
|
|
“old line by line” mode.
|
|
<P>
|
|
|
|
In “old line by line” mode or
|
|
<B>LINEMODE</B>
|
|
|
|
the terminal's
|
|
<B>eof</B>
|
|
|
|
character is only recognized (and sent to the remote system)
|
|
when it is the first character on a line.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
The source code is not comprehensible.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="126"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="127"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="128"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="129"><A HREF="#lbAE">ENVIRONMENT</A><DD>
|
|
<DT id="130"><A HREF="#lbAF">FILES</A><DD>
|
|
<DT id="131"><A HREF="#lbAG">HISTORY</A><DD>
|
|
<DT id="132"><A HREF="#lbAH">NOTES</A><DD>
|
|
<DT id="133"><A HREF="#lbAI">BUGS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:28 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|