Você está na página 1de 3

-r Emulate rlogin(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 telnet to disconnect from the remote
host. A ! instead of a dot suspends
telnet, and a " (the default telnet escape character) generates a normal telnet prompt. #hese
codes are accepted only at the begin$
ning of a line.
-% tos %ets the I& type-of-ser'ice (#(%) option for the telnet connection to the 'alue tos.
-e escapechar
%ets the escape character to escapechar. If no character is supplied, no escape character will be
used. Entering the escape charac$
ter while connected causes telnet to drop to command mode.
-l user
%pecify user as the user to log in as on the remote system. #his is accomplished by sending the
specified name as the )%E* en'iron$
ment 'ariable, so it re+uires that the remote system support the #E,-E# E-.I*(- option.
#his option implies the -a option, and may
also be used with the open command.
-n tracefile
(pens tracefile for recording trace information. %ee the set tracefile command below.
host %pecifies a host to contact o'er the networ/.
port %pecifies a port number or ser'ice name to contact. If not specified, the telnet port (01) is
used.
&rotocol:
(nce a connection has been opened, telnet will attempt to enable the #E,-E# ,I-E2(3E option.
If this fails, then telnet will re'ert to one
of two input modes: either 4character at a time5 or 4old line by line5 depending on what the remote
system supports.
6hen ,I-E2(3E is enabled, character processing is done on the local system, under the control of
the remote system. 6hen input editing or
character echoing is to be disabled, the remote system will relay that information. #he remote
system will also relay changes to any special
characters that happen on the remote system, so that they can ta/e effect on the local system.
In 4character at a time5 mode, most te7t typed is immediately sent to the remote host for processing.
In 4old line by line5 mode, all te7t is echoed locally, and (normally) only completed lines are sent to
the remote host. #he 4local echo
character5 (initially 4E5) may be used to turn off and on the local echo (this would mostly be used
to enter passwords without the password
being echoed).
If the ,I-E2(3E option is enabled, or if the localchars toggle is #*)E (the default for 4old line
by line48 see below), the user9s +uit,
intr, and flush characters are trapped locally, and sent as #E,-E# protocol se+uences to the remote
side. If ,I-E2(3E has e'er been enabled,
then the user9s susp and eof are also sent as #E,-E# protocol se+uences, and +uit is sent as a
#E,-E# A:(*# instead of :*EA; #here are
options (see toggle autoflush and toggle autosynch below) which cause this action to flush
subse+uent output to the terminal (until the
remote host ac/nowledges the #E,-E# se+uence) and flush pre'ious terminal input (in the case of
+uit and intr).
<ommands:
#he following telnet commands are a'ailable. )ni+ue prefi7es are understood as abbre'iations.
auth argument ...
#he auth command controls the #E,-E# A)#=E-#I<A#E protocol option. If telnet was
compiled without authentication, the auth com$
mand will not be supported. .alid arguments are as follows:
disable type 3isable the specified type of authentication. #o obtain a list of a'ailable types,
use the auth disable > command.
enable type Enable the specified type of authentication. #o obtain a list of a'ailable types,
use the auth enable > command.
status ,ist the current status of the 'arious types of authentication.
-ote that the current 'ersion of telnet does not support authentication.
close <lose the connection to the remote host, if any, and return to command mode.
display argument ...
3isplay all, or some, of the set and toggle 'alues (see below).
encrypt argument ...
#he encrypt command controls the #E,-E# E-<*?&# protocol option. If telnet was
compiled without encryption, the encrypt command .alid arguments are as follows:
disable type @inputAoutput"
3isable the specified type of encryption. If you do not specify input or output,
encryption of both is disabled.
#o obtain a list of a'ailable types, use BBencrypt disable >99.
enable type @inputAoutput"
Enable the specified type of encryption. If you do not specify input or output,
encryption of both is enabled. #o
obtain a list of a'ailable types, use BBencrypt enable >99.
input #his is the same as BBencrypt start input99.
-input #his is the same as BBencrypt stop input99.
output #his is the same as BBencrypt start output99.
-output #his is the same as BBencrypt stop output99.
start @inputAoutput"
Attempt to begin encrypting. If you do not specify input or output, encryption of
both input and output is started.
status 3isplay the current status of the encryption module.
stop @inputAoutput"
%top encrypting. If you do not specify input or output, encryption of both is
stopped.
type type %ets the default type of encryption to be used with later BBencrypt start99 or
BBencrypt stop99 commands.
-ote that the current 'ersion of telnet does not support encryption.
en'iron arguments...
#he en'iron command is used to propagate en'ironment 'ariables across the telnet lin/ using
the #E,-E# E-.I*(- protocol option.
All 'ariables e7ported from the shell are defined, but only the 3I%&,A? and &*I-#E*
'ariables are mar/ed to be sent by default.

Você também pode gostar