P TELNETD(8)                BSD System Manager's Manual               TELNETD(8)  NNAAMMEE;      tteellnneettdd - DARPA TELNET protocol server   SSYYNNOOPPSSIISS      //uussrr//lliibbeexxeecc//tteellnneettdd [--aa _a_u_t_h_m_o_d_e] [--BB] [--DD _d_e_b_u_g_m_o_d_e] [--eeddeebbuugg] [--hh]                           [--II_i_n_i_t_i_d] [--ll] [--kk] [--nn] [--rr_l_o_w_p_t_y_-_h_i_g_h_p_t_y] [--ss]T                           [--SS _t_o_s] [--uu _l_e_n] [--UU] [--XX _a_u_t_h_t_y_p_e] [--ddeebbuugg [_p_o_r_t]] # DDEESSCCRRIIPPTTIIOONN ]      The tteellnneettdd command is a server which supports the DARPA standard TELNET\      virtual terminal protocol.  TTeellnneettdd is normally invoked by the internetO      server (see inetd(8))  for requests to connect to the TELNET port as in-_t      dicated by the _/_e_t_c_/_s_e_r_v_i_c_e_s file (see services(5)).  The --ddeebbuugg option[      may be used to start up tteellnneettdd manually, instead of through inetd(8).Ef      If started up this way, _p_o_r_t may be specified to run tteellnneettdd on an alter-      nate TCP port number. G      The tteellnneettdd command accepts the following options:n b      --aa _a_u_t_h_m_o_d_e  This option may be used for specifying what mode should beP                   used for authentication.  Note that this option is only use-W                   ful if tteellnneettdd has been compiled with support for theeN                   AUTHENTICATION option.  There are several valid values for/                   _a_u_t_h_m_o_d_e_:  B                   debug  Turns on authentication debugging code. O                   user   Only allow connections when the remote user can pro-oP                          vide valid authentication information to identify theN                          remote user, and is allowed access to the specified@                          account without providing a password. O                   valid  Only allow connections when the remote user can pro- P                          vide valid authentication information to identify theN                          remote user.  The login(1) command will provide anyP                          additional user verification needed if the remote us-N                          er is not allowed automatic access to the specified#                          account.  N                   other  Only allow connections that supply some authentica-O                          tion information.  This option is currently not sup- N                          ported by any of the existing authentication mecha-\                          nisms, and is thus the same as specifying --aa vvaalliidd. N                   none   This is the default state.  Authentication informa-O                          tion is not required.  If no or insufficient authen-cN                          tication information is provided, then the login(1)P                          program will provide the necessary user verification. P                   off    This disables the authentication code.  All user ver-N                          ification will happen through the login(1) program. _      --BB           Specifies bftp server mode.  In this mode, tteellnneettdd causes-P                   login to start a bftp(1) session rather than the user's nor-N                   mal shell.  In bftp daemon mode normal logins are not sup-O                   ported, and it must be used on a port other than the normal.                    TELNET port. )      --DD _d_e_b_u_g_m_o_d_e P                   This option may be used for debugging purposes.  This allows[                   tteellnneettdd to print out debugging information to the connec-d^                   tion, allowing the user to see what tteellnneettdd is doing.  There R                   are several possible values for _d_e_b_u_g_m_o_d_e_: ^                   ooppttiioonnss   Prints information about the negotiation of TELNET&                             options. g                   rreeppoorrtt    Prints the ooppttiioonnss information, plus some addi- O                             tional information about what processing is going!                             on.e i                   nneettddaattaa   Displays the data stream received by tteellnneettdd..o M                   ppttyyddaattaa   Displays data written to the pty.r K                   eexxeerrcciissee  Has not been implemented yet.p f      --ddeebbuugg       Enables debugging on each socket created by tteellnneettdd (see+                   SO_DEBUG in socket(2)).l j      --eeddeebbuugg      If tteellnneettdd has been compiled with support for data encryp-]                   tion, then the --eeddeebbuugg option may be used to enable encryp- (                   tion debugging code. Q      --hh           Disables the printing of host-specific information beforee-                   login has been completed.u ]      --II _i_n_i_t_i_d    This option is only applicable to UNICOS systems prior to h                   7.0.  It specifies the ID from _/_e_t_c_/_i_n_i_t_t_a_b to use when initA                   starts login sessions.  The default ID is fe.e b      --kk           This option is only useful if tteellnneettdd has been compiled withT                   both linemode and kludge linemode support.  If the --kk optionP                   is specified, then if the remote client does not support the^                   LINEMODE option, then tteellnneettdd will operate in character at aO                   time mode.  It will still support kludge linemode, but will N                   only go into kludge linemode if the remote client requestsN                   it.  (This is done by by the client sending DONT SUPPRESS-R                   GO-AHEAD and DONT ECHO.) The --kk option is most useful whenG                   there are remote clients that do not support kludgesO                   linemode, but pass the heuristic (if they respond with WILL K                   TIMING-MARK in response to a DO TIMING-MARK) for kludge %                   linemode support.  Q      --ll           Specifies line mode.  Tries to force clients to use line- P                   at-a-time mode.  If the LINEMODE option is not supported, it1                   will go into kludge linemode.  `      --nn           Disable TCP keep-alives.  Normally tteellnneettdd enables the TCPL                   keep-alive mechanism to probe connections that have beenN                   idle for some period of time to determine if the client isL                   still there, so that idle connections from machines thatO                   have crashed or can no longer be reached may be cleaned up.  8      --rr _l_o_w_p_t_y_-_h_i_g_h_p_t_yZ                   This option is only enabled when tteellnneettdd is compiled forN                   UNICOS. It specifies an inclusive range of pseudo-terminalG                   devices to use.  If the system has sysconf variable O                   _SC_CRAY_NPTY configured, the default pty search range is 0 O                   to _SC_CRAY_NPTY; otherwise, the default range is 0 to 128. g                   Either _l_o_w_p_t_y or _h_i_g_h_p_t_y may be omitted to allow changing\                   either end of the search range.  If _l_o_w_p_t_y is omitted, the -]                   character is still required so that tteellnneettdd can differenti- F                   ate _h_i_g_h_p_t_y from _l_o_w_p_t_y. b      --ss           This option is only enabled if tteellnneettdd is compiled with sup-N                   port for SecurID cards.  It causes the --ss option to beO                   passed on to login(1),  and thus is only useful if login(1) T                   supports the --ss flag to indicate that only SecurID validatedM                   logins are allowed, and is usually useful for controllingf=                   remote logins from outside of a firewall.l       --SS _t_o_s- Y      --uu _l_e_n       This option is used to specify the size of the field in the O                   utmp structure that holds the remote host name.  If the re- V                   solved host name is longer than _l_e_n, the dotted decimal val-N                   ue will be used instead.  This allows hosts with very longL                   host names that overflow this field to still be uniquelyV                   identified.  Specifying --uu00 indicates that only dotted deci-K                   mal addresses should be put into the _u_t_m_p file.f _      --UU           This option causes tteellnneettdd to refuse connections from ad- O                   dresses that cannot be mapped back into a symbolic name via 1                   the gethostbyaddr(3) routine.  n      --XX _a_u_t_h_t_y_p_e  This option is only valid if tteellnneettdd has been built withO                   support for the authentication option.  It disables the use-^                   of _a_u_t_h_t_y_p_e authentication, and can be used to temporarilyP                   disable a specific authentication type without having to re-2                   compile tteellnneettdd. ^      TTeellnneettdd operates by allocating a pseudo-terminal device (see pty(4))  forN      a client, then creating a login process which has the slave side of the^      pseudo-terminal as stdin, stdout and stderr. TTeellnneettdd manipulates the mas-L      ter side of the pseudo-terminal, implementing the TELNET protocol andJ      passing characters between the remote client and the login process. ]      When a TELNET session is started up, tteellnneettdd sends TELNET options to theO      client side indicating a willingness to do the following TELNET options,r0      which are described in more detail below:             DO AUTHENTICATION            WILL ENCRYPT,            DO TERMINAL TYPEn            DO TSPEED            DO XDISPLOC            DO NEW-ENVIRONn            DO ENVIRONa#            WILL SUPPRESS GO AHEAD             DO ECHO            DO LINEMODE            DO NAWS            WILL STATUS            DO LFLOWE            DO TIMING-MARKc N      The pseudo-terminal allocated to the client is configured to operate inB      cooked mode, and with XTABS and CRMOD enabled (see tty(4)). [      TTeellnneettdd has support for enabling locally the following TELNET options:  M      WILL ECHO          When the LINEMODE option is enabled, a WILL ECHO or N                         WONT ECHO will be sent to the client to indicate theP                         current state of terminal echoing.  When terminal echoN                         is not desired, a WILL ECHO is sent to indicate thatO                         telnetd will take care of echoing any data that needstK                         to be echoed to the terminal, and then nothing is P                         echoed.  When terminal echo is desired, a WONT ECHO isM                         sent to indicate that telnetd will not be doing anytP                         terminal echoing, so the client should do any terminal1                         echoing that is needed.  O      WILL BINARY        Indicates that the client is willing to send a 8 bitseO                         of data, rather than the normal 7 bits of the Networko+                         Virtual Terminal.i J      WILL SGA           Indicates that it will not be sending IAC GA, go*                         ahead, commands. N      WILL STATUS        Indicates a willingness to send the client, upon re-M                         quest, of the current status of all TELNET options.i N      WILL TIMING-MARK   Whenever a DO TIMING-MARK command is received, it isE                         always responded to with a WILL TIMING-MARK  P      WILL LOGOUT        When a DO LOGOUT is received, a WILL LOGOUT is sent inH                         response, and the TELNET session is shut down. ^      WILL ENCRYPT       Only sent if tteellnneettdd is compiled with support for dataP                         encryption, and indicates a willingness to decrypt the&                         data stream. \      TTeellnneettdd has support for enabling remotely the following TELNET options: P      DO BINARY          Sent to indicate that telnetd is willing to receive an,                         8 bit data stream. N      DO LFLOW           Requests that the client handle flow control charac-(                         ters remotely. O      DO ECHO            This is not really supported, but is sent to identifyeN                         a 4.2BSD telnet(1) client, which will improperly re-M                         spond with WILL ECHO. If a WILL ECHO is received, a =                         DONT ECHO will be sent in response.e N      DO TERMINAL-TYPE   Indicates a desire to be able to request the name ofM                         the type of terminal that is attached to the client1                         side of the connection.D P      DO SGA             Indicates that it does not need to receive IAC GA, the+                         go ahead command.h M      DO NAWS            Requests that the client inform the server when theO8                         window (display) size changes. N      DO TERMINAL-SPEED  Indicates a desire to be able to request informationP                         about the speed of the serial line to which the client&                         is attached. N      DO XDISPLOC        Indicates a desire to be able to request the name ofP                         the X windows display that is associated with the tel-%                         net client.t N      DO NEW-ENVIRON     Indicates a desire to be able to request environmentI                         variable information, as described in RFC 1572.l N      DO ENVIRON         Indicates a desire to be able to request environmentI                         variable information, as described in RFC 1408.D Y      DO LINEMODE        Only sent if tteellnneettdd is compiled with support for P                         linemode, and requests that the client do line by line%                         processing.O ^      DO TIMING-MARK     Only sent if tteellnneettdd is compiled with support for bothP                         linemode and kludge linemode, and the client respondedN                         with WONT LINEMODE. If the client responds with WILLO                         TM, the it is assumed that the client supports kludgeQ                         linemode.  Note that the [--kk] option can be used to  '                         disable this.  ]      DO AUTHENTICATION  Only sent if tteellnneettdd is compiled with support for au-N                         thentication, and indicates a willingness to receiveI                         authentication information for automatic login.N ^      DO ENCRYPT         Only sent if tteellnneettdd is compiled with support for dataP                         encryption, and indicates a willingness to decrypt the&                         data stream. # EENNVVIIRROONNMMEENNTT FFIILLEESSI.      _/_e_t_c_/_s_e_r_v_i_c_e_sA      _/_e_t_c_/_i_n_i_t_t_a_b (UNICOS systems only)n4      _/_e_t_c_/_i_p_t_o_s (if supported)=      _/_u_s_r_/_u_c_b_/_b_f_t_p (if supported)   SSEEEE AALLSSOO4      telnet(1),  login(1),  bftp(1) (if supported)  SSTTAANNDDAARRDDSS <      RRFFCC--885544   TELNET PROTOCOL SPECIFICATION;      RRFFCC--885555   TELNET OPTION SPECIFICATIONS9      RRFFCC--885566   TELNET BINARY TRANSMISSION1      RRFFCC--885577   TELNET ECHO OPTIONn>      RRFFCC--885588   TELNET SUPPRESS GO AHEAD OPTION3      RRFFCC--885599   TELNET STATUS OPTION8      RRFFCC--886600   TELNET TIMING MARK OPTIOND      RRFFCC--886611   TELNET EXTENDED OPTIONS - LIST OPTION:      RRFFCC--888855   TELNET END OF RECORD OPTION:      RRFFCC--11007733  Telnet Window Size Option=      RRFFCC--11007799  Telnet Terminal Speed Option6<      RRFFCC--11009911  Telnet Terminal-Type OptionA      RRFFCC--11009966  Telnet X Display Location OptionS[      RRFFCC--11112233  Requirements for Internet Hosts -- Application and Support87      RRFFCC--11118844  Telnet Linemode Option8B      RRFFCC--11337722  Telnet Remote Flow Control Option=      RRFFCC--11441166  Telnet Authentication OptionJ      RRFFCC--11441111  Telnet Authentication: Kerberos Version 4;      RRFFCC--11441122  Telnet Authentication: SPXeR      RRFFCC--11557711  Telnet Environment Option Interoperability Issues:      RRFFCC--11557722  Telnet Environment Option  BBUUGGSS;      Some TELNET commands are only partially implemented.  ^      Because of bugs in the original 4.2 BSD telnet(1),  tteellnneettdd performs someP      dubious protocol exchanges to try to discover if the remote client is, in!      fact, a 4.2 BSD telnet(1).r P      Binary mode has no common interpretation except between similar operating#      systems (Unix in this case).p M      The terminal type name received from the remote client is converted top      lower case. K      TTeellnneettdd never sends TELNET IAC GA (go ahead) commands.c P 4.2 Berkeley Distribution      February 3, 1994                              5