📄 telnet.0
字号:
TELNET(1) UNIX Reference Manual TELNET(1)NNAAMMEE tteellnneett - User interface to the TELNET protocolSSYYNNOOPPSSIISS tteellnneett --8 [] [--EE] [--KK] [--LL] [--XX _a_t_y_p_e] [--aa] [--cc] [--dd] [--ee _e_s_c_a_p_e_c_h_a_r] [--kk _r_e_a_l_m] [--ll _u_s_e_r] [--nn _t_r_a_c_e_f_i_l_e] [--rr] [--xx] [_h_o_s_t [port]]DDEESSCCRRIIPPTTIIOONN The tteellnneett command is used to communicate with another host using the TELNET protocol. If tteellnneett is invoked without the _h_o_s_t argument, it enters command mode, indicated by its prompt (tteellnneett>>). In this mode, it accepts and executes the commands listed below. If it is invoked with arguments, it performs an ooppeenn command with those arguments. Options: --88 Use an eight bit data path. This will cause an attempt to negotiate the BINARY option on both input and output. --EE The --EE option stops any character from being recognized as an escape character. --KK Do not attempt to do automatic login to the remote system. --LL Use an eight bit data path on output. This causes the BINARY option to be negotiated on output. --XX _a_t_y_p_e Disable the _a_t_y_p_e type of authentication. --aa Attempt automatic login. Currently, this sends the user name via the USER variable of the ENVIRON option if support- ed by the remote system. The name used is that of the current user as returned by if it agrees with the current user ID, otherwise it is the name associated with the user ID. --cc The --cc flag disables the reading of the users ._t_e_l_n_e_t_r_c. (See the ttooggggllee sskkiipprrcc command below.) --dd Sets the initial value of the ddeebbuugg toggle to TRUE --ee _e_s_c_a_p_e _c_h_a_r Sets the initial tteellnneett escape character to _e_s_c_a_p_e _c_h_a_r. If _e_s_c_a_p_e _c_h_a_r is ommitted, then there will be no escape char- acter. --kk _r_e_a_l_m If Kerberos authentication is being used, the --kk option re- quests that tteellnneett obtain tickets for the remote host in realm _r_e_a_l_m instead of the remote host's realm as determined by krb_realmofhost(3). --ll _u_s_e_r When connecting to the remote system, if the remote system understands the ENVIRON option, then _u_s_e_r will be sent to the remote system as the value for the variable USER. This option implies the --aa option. This option may also be used with the ooppeenn command. --nn _t_r_a_c_e_f_i_l_e Opens _t_r_a_c_e_f_i_l_e for recording trace information. See the sseett ttrraacceeffiillee command below. --rr Use a user interface similar to rlogin(1). In this mode, the escape character is set to the tilde (``~'') character, unless modified by the --ee flag. --xx Turn on encryption of the data stream, if possible. _h_o_s_t Indicates the official name, an alias, or the Internet ad- dress of a remote host. _p_o_r_t Indicates a port number (address of an application) or name. If a number is not specified, the default tteellnneett port is used. Port names are mapped to port numbers via the /etc/services file. Normally when a port number is speci- fied, tteellnneett will not send out any initial TELNET option negotiation. If the port number/name is preceded by a minus sign, then the initial TELNET option negotiation will be sent. When in rrllooggiinn mode, a line of the form ``~.'' disconnects from the remote host, where ``~'' is the tteellnneett escape character. Similarly, the line ``~^Z'' will suspend the tteellnneett session. The line ``~^]'' will escape to the normal tteellnneett escape prompt. Once a connection has been opened, tteellnneett will attempt to enable the TELNET LINEMODE option. If this fails, then tteellnneett 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. When LINEMODE 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 ef- fect on the local system. In ``character at a time'' mode, most text typed is immediately sent to the remote host for processing. In ``old line by line'' mode, all text is echoed locally, and (normal- ly) 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). If the LINEMODE option is enabled, or if the llooccaallcchhaarrss toggle is TRUE (the default for ``old line by line``; see below), the user's qquuiitt, iinnttrr, and fflluusshh characters are trapped locally, and sent as TELNET protocol sequences to the remote side. If LINEMODE has ever been en- abled, then the user's ssuusspp and eeooff are also sent as TELNET protocol sequences, and qquuiitt is sent as a TELNET ABORT instead of BREAK There are options (see ttooggggllee aauuttoofflluusshh and ttooggggllee aauuttoossyynncchh below) which cause this action to flush subsequent output to the terminal (until the remote host acknowledges the TELNET sequence) and flush previous terminal input (in the case of qquuiitt and iinnttrr). While connected to a remote host, tteellnneett command mode may be entered by typing the tteellnneett ``escape character'' (initially ``^ When in com- mand mode, the normal terminal editing conventions are available. The following tteellnneett commands are available. Only enough of each com- mand to uniquely identify it need be typed (this is also true for most of the arguments to the commands). aauutthh _a_r_g_u_m_e_n_t_s... The aauutthh command is used to manipulate the the information that my be sent through the TELNET AUTHENTICATE option. Valid arguments for the aauutthh command are: ddiissaabbllee _t_y_p_e Disable the specified _t_y_p_e of authentication. A list of available types can be gotten by doing an aauutthh ddiissaabbllee ?? command. eennaabbllee _t_y_p_e Enable the specified _t_y_p_e of authentication. A list of available types can be gotten by doing an aauutthh eennaabbllee ?? command. ssttaattuuss List the current status of the various types of authentication. cclloossee Close a TELNET session and return to command mode. ddiissppllaayy _a_r_g_u_m_e_n_t ... Displays all, or some, of the sseett and ttooggggllee values (see below). eennccrryypptt _a_r_g_u_m_e_n_t_s... The eennccrryypptt command is used to manipulate the the informa- tion that my be sent through the TELNET ENCRYPT option. Valid arguments for the eennccrryypptt command are: ddiissaabbllee _t_y_p_e[input|output] Disable the specified _t_y_p_e of encryption. If the [input] or [output] is not specified, both input and output will be disabled. A list of available types can be gotten by doing an eennccrryypptt ddiissaabbllee ?? command. eennaabbllee _t_y_p_e[input|output] Enable the specified _t_y_p_e of encryption. If [input] or [output] is not specified, both input and output will be enabled. A list of available types can be gotten by doing an eennccrryypptt eennaabbllee ?? command. ttyyppee _t_y_p_e Set the default type of encryption to be used with later eennccrryypptt ssttaarrtt or eennccrryypptt ssttoopp commands. ssttaarrtt[input|output] Attempt to start encryption. If [input] or [output] is not specified, encryption of both in- put and output will be attempted. The eennccrryypptt ttyyppee command must have been used to set the en- cryption type. ssttoopp[input|output] Stop encryption. If [input] or [output] is not specified, encryption will be stopped on both in- put and output. iinnppuutt This is the same as the eennccrryypptt ssttaarrtt iinnppuutt com- mand. --iinnppuutt This is the same as the eennccrryypptt ssttoopp iinnppuutt com- mand. oouuttppuutt This is the same as the eennccrryypptt ssttaarrtt oouuttppuutt com- mand. --oouuttppuutt This is the same as the eennccrryypptt ssttoopp oouuttppuutt com- mand. ssttaattuuss List the current status of encryption. eennvviirroonn _a_r_g_u_m_e_n_t_s... The eennvviirroonn command is used to manipulate the the variables that my be sent through the TELNET ENVIRON option. The ini- tial set of variables is taken from the users environment, with only the DISPLAY and PRINTER variables being exported by default. The USER variable is also exported if the --aa or --ll options are used. Valid arguments for the eennvviirroonn command are: ddeeffiinnee _v_a_r_i_a_b_l_e _v_a_l_u_e Define the variable _v_a_r_i_a_b_l_e to have a value of _v_a_l_u_e. Any variables defined by this command are automatically exported. The _v_a_l_u_e may be enclosed in single or double quotes so that tabs and spaces may be included. uunnddeeffiinnee _v_a_r_i_a_b_l_e Remove _v_a_r_i_a_b_l_e from the list of environment vari- ables. eexxppoorrtt _v_a_r_i_a_b_l_e Mark the variable _v_a_r_i_a_b_l_e to be exported to the remote side. uunneexxppoorrtt _v_a_r_i_a_b_l_e Mark the variable _v_a_r_i_a_b_l_e to not be exported un- less explicitly asked for by the remote side. lliisstt List the current set of environment variables. Those marked with a ** will be sent automatically, other variables will only be sent if explicitly requested. ?? Prints out help information for the eennvviirroonn com- mand. llooggoouutt Send the TELNET LOGOUT option to the remote side. This is similar to doing a cclloossee command, however if the remote side
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -