113e3f4d6SMark Murray.\" Copyright (c) 1983, 1993 213e3f4d6SMark Murray.\" The Regents of the University of California. All rights reserved. 313e3f4d6SMark Murray.\" 413e3f4d6SMark Murray.\" Redistribution and use in source and binary forms, with or without 513e3f4d6SMark Murray.\" modification, are permitted provided that the following conditions 613e3f4d6SMark Murray.\" are met: 713e3f4d6SMark Murray.\" 1. Redistributions of source code must retain the above copyright 813e3f4d6SMark Murray.\" notice, this list of conditions and the following disclaimer. 913e3f4d6SMark Murray.\" 2. Redistributions in binary form must reproduce the above copyright 1013e3f4d6SMark Murray.\" notice, this list of conditions and the following disclaimer in the 1113e3f4d6SMark Murray.\" documentation and/or other materials provided with the distribution. 1213e3f4d6SMark Murray.\" 3. All advertising materials mentioning features or use of this software 1313e3f4d6SMark Murray.\" must display the following acknowledgement: 1413e3f4d6SMark Murray.\" This product includes software developed by the University of 1513e3f4d6SMark Murray.\" California, Berkeley and its contributors. 1613e3f4d6SMark Murray.\" 4. Neither the name of the University nor the names of its contributors 1713e3f4d6SMark Murray.\" may be used to endorse or promote products derived from this software 1813e3f4d6SMark Murray.\" without specific prior written permission. 1913e3f4d6SMark Murray.\" 2013e3f4d6SMark Murray.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2113e3f4d6SMark Murray.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2213e3f4d6SMark Murray.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2313e3f4d6SMark Murray.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2413e3f4d6SMark Murray.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2513e3f4d6SMark Murray.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2613e3f4d6SMark Murray.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2713e3f4d6SMark Murray.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2813e3f4d6SMark Murray.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2913e3f4d6SMark Murray.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3013e3f4d6SMark Murray.\" SUCH DAMAGE. 3113e3f4d6SMark Murray.\" 3213e3f4d6SMark Murray.\" @(#)telnetd.8 8.4 (Berkeley) 6/1/94 3313e3f4d6SMark Murray.\" 34c19800e8SDoug Rabson.Dd September 19, 2006 3513e3f4d6SMark Murray.Dt TELNETD 8 3613e3f4d6SMark Murray.Os BSD 4.2 3713e3f4d6SMark Murray.Sh NAME 3813e3f4d6SMark Murray.Nm telnetd 3913e3f4d6SMark Murray.Nd DARPA 4013e3f4d6SMark Murray.Tn TELNET 4113e3f4d6SMark Murrayprotocol server 4213e3f4d6SMark Murray.Sh SYNOPSIS 4313e3f4d6SMark Murray.Nm telnetd 44c19800e8SDoug Rabson.Op Fl BeUhkln 4513e3f4d6SMark Murray.Op Fl D Ar debugmode 4613e3f4d6SMark Murray.Op Fl S Ar tos 4713e3f4d6SMark Murray.Op Fl X Ar authtype 4813e3f4d6SMark Murray.Op Fl a Ar authmode 4913e3f4d6SMark Murray.Op Fl r Ns Ar lowpty-highpty 5013e3f4d6SMark Murray.Op Fl u Ar len 5113e3f4d6SMark Murray.Op Fl debug 5213e3f4d6SMark Murray.Op Fl L Ar /bin/login 534137ff4cSJacques Vidrine.Op Fl y 5413e3f4d6SMark Murray.Op Ar port 5513e3f4d6SMark Murray.Sh DESCRIPTION 5613e3f4d6SMark MurrayThe 5713e3f4d6SMark Murray.Nm telnetd 5813e3f4d6SMark Murraycommand is a server which supports the 5913e3f4d6SMark Murray.Tn DARPA 6013e3f4d6SMark Murraystandard 6113e3f4d6SMark Murray.Tn TELNET 6213e3f4d6SMark Murrayvirtual terminal protocol. 6313e3f4d6SMark Murray.Nm Telnetd 6413e3f4d6SMark Murrayis normally invoked by the internet server (see 6513e3f4d6SMark Murray.Xr inetd 8 ) 6613e3f4d6SMark Murrayfor requests to connect to the 6713e3f4d6SMark Murray.Tn TELNET 6813e3f4d6SMark Murrayport as indicated by the 6913e3f4d6SMark Murray.Pa /etc/services 7013e3f4d6SMark Murrayfile (see 7113e3f4d6SMark Murray.Xr services 5 ) . 7213e3f4d6SMark MurrayThe 7313e3f4d6SMark Murray.Fl debug 7413e3f4d6SMark Murrayoption may be used to start up 7513e3f4d6SMark Murray.Nm telnetd 7613e3f4d6SMark Murraymanually, instead of through 7713e3f4d6SMark Murray.Xr inetd 8 . 7813e3f4d6SMark MurrayIf started up this way, 7913e3f4d6SMark Murray.Ar port 8013e3f4d6SMark Murraymay be specified to run 8113e3f4d6SMark Murray.Nm telnetd 8213e3f4d6SMark Murrayon an alternate 8313e3f4d6SMark Murray.Tn TCP 8413e3f4d6SMark Murrayport number. 8513e3f4d6SMark Murray.Pp 8613e3f4d6SMark MurrayThe 8713e3f4d6SMark Murray.Nm telnetd 8813e3f4d6SMark Murraycommand accepts the following options: 8913e3f4d6SMark Murray.Bl -tag -width "-a authmode" 9013e3f4d6SMark Murray.It Fl a Ar authmode 9113e3f4d6SMark MurrayThis option may be used for specifying what mode should 9213e3f4d6SMark Murraybe used for authentication. 9313e3f4d6SMark MurrayNote that this option is only useful if 9413e3f4d6SMark Murray.Nm telnetd 9513e3f4d6SMark Murrayhas been compiled with support for the 9613e3f4d6SMark Murray.Dv AUTHENTICATION 9713e3f4d6SMark Murrayoption. 9813e3f4d6SMark MurrayThere are several valid values for 9913e3f4d6SMark Murray.Ar authmode : 10013e3f4d6SMark Murray.Bl -tag -width debug 10113e3f4d6SMark Murray.It debug 10213e3f4d6SMark MurrayTurns on authentication debugging code. 10313e3f4d6SMark Murray.It user 10413e3f4d6SMark MurrayOnly allow connections when the remote user 10513e3f4d6SMark Murraycan provide valid authentication information 10613e3f4d6SMark Murrayto identify the remote user, 10713e3f4d6SMark Murrayand is allowed access to the specified account 10813e3f4d6SMark Murraywithout providing a password. 10913e3f4d6SMark Murray.It valid 11013e3f4d6SMark MurrayOnly allow connections when the remote user 11113e3f4d6SMark Murraycan provide valid authentication information 11213e3f4d6SMark Murrayto identify the remote user. 11313e3f4d6SMark MurrayThe 11413e3f4d6SMark Murray.Xr login 1 11513e3f4d6SMark Murraycommand will provide any additional user verification 11613e3f4d6SMark Murrayneeded if the remote user is not allowed automatic 11713e3f4d6SMark Murrayaccess to the specified account. 11813e3f4d6SMark Murray.It other 11913e3f4d6SMark MurrayOnly allow connections that supply some authentication information. 12013e3f4d6SMark MurrayThis option is currently not supported 12113e3f4d6SMark Murrayby any of the existing authentication mechanisms, 12213e3f4d6SMark Murrayand is thus the same as specifying 12313e3f4d6SMark Murray.Fl a 12413e3f4d6SMark Murray.Cm valid . 12513e3f4d6SMark Murray.It otp 12613e3f4d6SMark MurrayOnly allow authenticated connections (as with 12713e3f4d6SMark Murray.Fl a 12813e3f4d6SMark Murray.Cm user ) 12913e3f4d6SMark Murrayand also logins with one-time passwords (OTPs). This option will call 13013e3f4d6SMark Murraylogin with an option so that only OTPs are accepted. The user can of 13113e3f4d6SMark Murraycourse still type secret information at the prompt. 13213e3f4d6SMark Murray.It none 13313e3f4d6SMark MurrayThis is the default state. 13413e3f4d6SMark MurrayAuthentication information is not required. 13513e3f4d6SMark MurrayIf no or insufficient authentication information 13613e3f4d6SMark Murrayis provided, then the 13713e3f4d6SMark Murray.Xr login 1 13813e3f4d6SMark Murrayprogram will provide the necessary user 13913e3f4d6SMark Murrayverification. 14013e3f4d6SMark Murray.It off 14113e3f4d6SMark MurrayThis disables the authentication code. 14213e3f4d6SMark MurrayAll user verification will happen through the 14313e3f4d6SMark Murray.Xr login 1 14413e3f4d6SMark Murrayprogram. 14513e3f4d6SMark Murray.El 14613e3f4d6SMark Murray.It Fl B 14713e3f4d6SMark MurrayIgnored. 14813e3f4d6SMark Murray.It Fl D Ar debugmode 14913e3f4d6SMark MurrayThis option may be used for debugging purposes. 15013e3f4d6SMark MurrayThis allows 15113e3f4d6SMark Murray.Nm telnetd 15213e3f4d6SMark Murrayto print out debugging information 15313e3f4d6SMark Murrayto the connection, allowing the user to see what 15413e3f4d6SMark Murray.Nm telnetd 15513e3f4d6SMark Murrayis doing. 15613e3f4d6SMark MurrayThere are several possible values for 15713e3f4d6SMark Murray.Ar debugmode : 15813e3f4d6SMark Murray.Bl -tag -width exercise 15913e3f4d6SMark Murray.It Cm options 16013e3f4d6SMark MurrayPrints information about the negotiation of 16113e3f4d6SMark Murray.Tn TELNET 16213e3f4d6SMark Murrayoptions. 16313e3f4d6SMark Murray.It Cm report 16413e3f4d6SMark MurrayPrints the 16513e3f4d6SMark Murray.Cm options 16613e3f4d6SMark Murrayinformation, plus some additional information 16713e3f4d6SMark Murrayabout what processing is going on. 16813e3f4d6SMark Murray.It Cm netdata 16913e3f4d6SMark MurrayDisplays the data stream received by 17013e3f4d6SMark Murray.Nm telnetd . 17113e3f4d6SMark Murray.It Cm ptydata 17213e3f4d6SMark MurrayDisplays data written to the pty. 17313e3f4d6SMark Murray.It Cm exercise 17413e3f4d6SMark MurrayHas not been implemented yet. 17513e3f4d6SMark Murray.El 176c19800e8SDoug Rabson.It Fl e 177c19800e8SDoug Rabsonrequire encryption to be turned on (in both direction) by the client 178c19800e8SDoug Rabsonand disconnects if the client tries to turn the encryption off (in 179c19800e8SDoug Rabsoneither direction). 18013e3f4d6SMark Murray.It Fl h 18113e3f4d6SMark MurrayDisables the printing of host-specific information before 18213e3f4d6SMark Murraylogin has been completed. 18313e3f4d6SMark Murray.It Fl k 18413e3f4d6SMark Murray.It Fl l 18513e3f4d6SMark MurrayIgnored. 18613e3f4d6SMark Murray.It Fl n 18713e3f4d6SMark MurrayDisable 18813e3f4d6SMark Murray.Dv TCP 18913e3f4d6SMark Murraykeep-alives. Normally 19013e3f4d6SMark Murray.Nm telnetd 19113e3f4d6SMark Murrayenables the 19213e3f4d6SMark Murray.Tn TCP 19313e3f4d6SMark Murraykeep-alive mechanism to probe connections that 19413e3f4d6SMark Murrayhave been idle for some period of time to determine 19513e3f4d6SMark Murrayif the client is still there, so that idle connections 19613e3f4d6SMark Murrayfrom machines that have crashed or can no longer 19713e3f4d6SMark Murraybe reached may be cleaned up. 19813e3f4d6SMark Murray.It Fl r Ar lowpty-highpty 19913e3f4d6SMark MurrayThis option is only enabled when 20013e3f4d6SMark Murray.Nm telnetd 20113e3f4d6SMark Murrayis compiled for 20213e3f4d6SMark Murray.Dv UNICOS . 20313e3f4d6SMark MurrayIt specifies an inclusive range of pseudo-terminal devices to 20413e3f4d6SMark Murrayuse. If the system has sysconf variable 20513e3f4d6SMark Murray.Dv _SC_CRAY_NPTY 20613e3f4d6SMark Murrayconfigured, the default pty search range is 0 to 20713e3f4d6SMark Murray.Dv _SC_CRAY_NPTY ; 20813e3f4d6SMark Murrayotherwise, the default range is 0 to 128. Either 20913e3f4d6SMark Murray.Ar lowpty 21013e3f4d6SMark Murrayor 21113e3f4d6SMark Murray.Ar highpty 21213e3f4d6SMark Murraymay be omitted to allow changing 21313e3f4d6SMark Murrayeither end of the search range. If 21413e3f4d6SMark Murray.Ar lowpty 21513e3f4d6SMark Murrayis omitted, the - character is still required so that 21613e3f4d6SMark Murray.Nm telnetd 21713e3f4d6SMark Murraycan differentiate 21813e3f4d6SMark Murray.Ar highpty 21913e3f4d6SMark Murrayfrom 22013e3f4d6SMark Murray.Ar lowpty . 22113e3f4d6SMark Murray.It Fl S Ar tos 22213e3f4d6SMark Murray.It Fl u Ar len 22313e3f4d6SMark MurrayThis option is used to specify the size of the field 22413e3f4d6SMark Murrayin the 22513e3f4d6SMark Murray.Dv utmp 22613e3f4d6SMark Murraystructure that holds the remote host name. 22713e3f4d6SMark MurrayIf the resolved host name is longer than 22813e3f4d6SMark Murray.Ar len , 22913e3f4d6SMark Murraythe dotted decimal value will be used instead. 23013e3f4d6SMark MurrayThis allows hosts with very long host names that 23113e3f4d6SMark Murrayoverflow this field to still be uniquely identified. 23213e3f4d6SMark MurraySpecifying 23313e3f4d6SMark Murray.Fl u0 23413e3f4d6SMark Murrayindicates that only dotted decimal addresses 23513e3f4d6SMark Murrayshould be put into the 23613e3f4d6SMark Murray.Pa utmp 23713e3f4d6SMark Murrayfile. 23813e3f4d6SMark Murray.It Fl U 23913e3f4d6SMark MurrayThis option causes 24013e3f4d6SMark Murray.Nm telnetd 24113e3f4d6SMark Murrayto refuse connections from addresses that 24213e3f4d6SMark Murraycannot be mapped back into a symbolic name 24313e3f4d6SMark Murrayvia the 24413e3f4d6SMark Murray.Xr gethostbyaddr 3 24513e3f4d6SMark Murrayroutine. 24613e3f4d6SMark Murray.It Fl X Ar authtype 24713e3f4d6SMark MurrayThis option is only valid if 24813e3f4d6SMark Murray.Nm telnetd 24913e3f4d6SMark Murrayhas been built with support for the authentication option. 25013e3f4d6SMark MurrayIt disables the use of 25113e3f4d6SMark Murray.Ar authtype 25213e3f4d6SMark Murrayauthentication, and 25313e3f4d6SMark Murraycan be used to temporarily disable 25413e3f4d6SMark Murraya specific authentication type without having to recompile 25513e3f4d6SMark Murray.Nm telnetd . 2564137ff4cSJacques Vidrine.It Fl L Ar pathname 25713e3f4d6SMark MurraySpecify pathname to an alternative login program. 2584137ff4cSJacques Vidrine.It Fl y 2594137ff4cSJacques VidrineMakes 2604137ff4cSJacques Vidrine.Nm 2614137ff4cSJacques Vidrinenot warn when a user is trying to login with a cleartext password. 26213e3f4d6SMark Murray.El 26313e3f4d6SMark Murray.Pp 26413e3f4d6SMark Murray.Nm Telnetd 26513e3f4d6SMark Murrayoperates by allocating a pseudo-terminal device (see 26613e3f4d6SMark Murray.Xr pty 4 ) 26713e3f4d6SMark Murrayfor a client, then creating a login process which has 26813e3f4d6SMark Murraythe slave side of the pseudo-terminal as 26913e3f4d6SMark Murray.Dv stdin , 27013e3f4d6SMark Murray.Dv stdout 27113e3f4d6SMark Murrayand 27213e3f4d6SMark Murray.Dv stderr . 27313e3f4d6SMark Murray.Nm Telnetd 27413e3f4d6SMark Murraymanipulates the master side of the pseudo-terminal, 27513e3f4d6SMark Murrayimplementing the 27613e3f4d6SMark Murray.Tn TELNET 27713e3f4d6SMark Murrayprotocol and passing characters 27813e3f4d6SMark Murraybetween the remote client and the login process. 27913e3f4d6SMark Murray.Pp 28013e3f4d6SMark MurrayWhen a 28113e3f4d6SMark Murray.Tn TELNET 28213e3f4d6SMark Murraysession is started up, 28313e3f4d6SMark Murray.Nm telnetd 28413e3f4d6SMark Murraysends 28513e3f4d6SMark Murray.Tn TELNET 28613e3f4d6SMark Murrayoptions to the client side indicating 28713e3f4d6SMark Murraya willingness to do the 28813e3f4d6SMark Murrayfollowing 28913e3f4d6SMark Murray.Tn TELNET 29013e3f4d6SMark Murrayoptions, which are described in more detail below: 29113e3f4d6SMark Murray.Bd -literal -offset indent 29213e3f4d6SMark MurrayDO AUTHENTICATION 29313e3f4d6SMark MurrayWILL ENCRYPT 29413e3f4d6SMark MurrayDO TERMINAL TYPE 29513e3f4d6SMark MurrayDO TSPEED 29613e3f4d6SMark MurrayDO XDISPLOC 29713e3f4d6SMark MurrayDO NEW-ENVIRON 29813e3f4d6SMark MurrayDO ENVIRON 29913e3f4d6SMark MurrayWILL SUPPRESS GO AHEAD 30013e3f4d6SMark MurrayDO ECHO 30113e3f4d6SMark MurrayDO LINEMODE 30213e3f4d6SMark MurrayDO NAWS 30313e3f4d6SMark MurrayWILL STATUS 30413e3f4d6SMark MurrayDO LFLOW 30513e3f4d6SMark MurrayDO TIMING-MARK 30613e3f4d6SMark Murray.Ed 30713e3f4d6SMark Murray.Pp 30813e3f4d6SMark MurrayThe pseudo-terminal allocated to the client is configured 3095e9cd1aeSAssar Westerlundto operate in 3105e9cd1aeSAssar Westerlund.Dq cooked 3115e9cd1aeSAssar Westerlundmode, and with 31213e3f4d6SMark Murray.Dv XTABS and 31313e3f4d6SMark Murray.Dv CRMOD 31413e3f4d6SMark Murrayenabled (see 31513e3f4d6SMark Murray.Xr tty 4 ) . 31613e3f4d6SMark Murray.Pp 31713e3f4d6SMark Murray.Nm Telnetd 31813e3f4d6SMark Murrayhas support for enabling locally the following 31913e3f4d6SMark Murray.Tn TELNET 32013e3f4d6SMark Murrayoptions: 32113e3f4d6SMark Murray.Bl -tag -width "DO AUTHENTICATION" 32213e3f4d6SMark Murray.It "WILL ECHO" 32313e3f4d6SMark MurrayWhen the 32413e3f4d6SMark Murray.Dv LINEMODE 32513e3f4d6SMark Murrayoption is enabled, a 32613e3f4d6SMark Murray.Dv WILL ECHO 32713e3f4d6SMark Murrayor 32813e3f4d6SMark Murray.Dv WONT ECHO 32913e3f4d6SMark Murraywill be sent to the client to indicate the 33013e3f4d6SMark Murraycurrent state of terminal echoing. 33113e3f4d6SMark MurrayWhen terminal echo is not desired, a 33213e3f4d6SMark Murray.Dv WILL ECHO 33313e3f4d6SMark Murrayis sent to indicate that 33413e3f4d6SMark Murray.Tn telnetd 33513e3f4d6SMark Murraywill take care of echoing any data that needs to be 33613e3f4d6SMark Murrayechoed to the terminal, and then nothing is echoed. 33713e3f4d6SMark MurrayWhen terminal echo is desired, a 33813e3f4d6SMark Murray.Dv WONT ECHO 33913e3f4d6SMark Murrayis sent to indicate that 34013e3f4d6SMark Murray.Tn telnetd 34113e3f4d6SMark Murraywill not be doing any terminal echoing, so the 34213e3f4d6SMark Murrayclient should do any terminal echoing that is needed. 34313e3f4d6SMark Murray.It "WILL BINARY" 34413e3f4d6SMark MurrayIndicates that the client is willing to send a 34513e3f4d6SMark Murray8 bits of data, rather than the normal 7 bits 34613e3f4d6SMark Murrayof the Network Virtual Terminal. 34713e3f4d6SMark Murray.It "WILL SGA" 34813e3f4d6SMark MurrayIndicates that it will not be sending 34913e3f4d6SMark Murray.Dv IAC GA , 35013e3f4d6SMark Murraygo ahead, commands. 35113e3f4d6SMark Murray.It "WILL STATUS" 35213e3f4d6SMark MurrayIndicates a willingness to send the client, upon 35313e3f4d6SMark Murrayrequest, of the current status of all 35413e3f4d6SMark Murray.Tn TELNET 35513e3f4d6SMark Murrayoptions. 35613e3f4d6SMark Murray.It "WILL TIMING-MARK" 35713e3f4d6SMark MurrayWhenever a 35813e3f4d6SMark Murray.Dv DO TIMING-MARK 35913e3f4d6SMark Murraycommand is received, it is always responded 36013e3f4d6SMark Murrayto with a 36113e3f4d6SMark Murray.Dv WILL TIMING-MARK 36213e3f4d6SMark Murray.It "WILL LOGOUT" 36313e3f4d6SMark MurrayWhen a 36413e3f4d6SMark Murray.Dv DO LOGOUT 36513e3f4d6SMark Murrayis received, a 36613e3f4d6SMark Murray.Dv WILL LOGOUT 36713e3f4d6SMark Murrayis sent in response, and the 36813e3f4d6SMark Murray.Tn TELNET 36913e3f4d6SMark Murraysession is shut down. 37013e3f4d6SMark Murray.It "WILL ENCRYPT" 37113e3f4d6SMark MurrayOnly sent if 37213e3f4d6SMark Murray.Nm telnetd 37313e3f4d6SMark Murrayis compiled with support for data encryption, and 37413e3f4d6SMark Murrayindicates a willingness to decrypt 37513e3f4d6SMark Murraythe data stream. 37613e3f4d6SMark Murray.El 37713e3f4d6SMark Murray.Pp 37813e3f4d6SMark Murray.Nm Telnetd 37913e3f4d6SMark Murrayhas support for enabling remotely the following 38013e3f4d6SMark Murray.Tn TELNET 38113e3f4d6SMark Murrayoptions: 38213e3f4d6SMark Murray.Bl -tag -width "DO AUTHENTICATION" 38313e3f4d6SMark Murray.It "DO BINARY" 38413e3f4d6SMark MurraySent to indicate that 38513e3f4d6SMark Murray.Tn telnetd 38613e3f4d6SMark Murrayis willing to receive an 8 bit data stream. 38713e3f4d6SMark Murray.It "DO LFLOW" 38813e3f4d6SMark MurrayRequests that the client handle flow control 38913e3f4d6SMark Murraycharacters remotely. 39013e3f4d6SMark Murray.It "DO ECHO" 39113e3f4d6SMark MurrayThis is not really supported, but is sent to identify a 4.2BSD 39213e3f4d6SMark Murray.Xr telnet 1 39313e3f4d6SMark Murrayclient, which will improperly respond with 39413e3f4d6SMark Murray.Dv WILL ECHO . 39513e3f4d6SMark MurrayIf a 39613e3f4d6SMark Murray.Dv WILL ECHO 39713e3f4d6SMark Murrayis received, a 39813e3f4d6SMark Murray.Dv DONT ECHO 39913e3f4d6SMark Murraywill be sent in response. 40013e3f4d6SMark Murray.It "DO TERMINAL-TYPE" 40113e3f4d6SMark MurrayIndicates a desire to be able to request the 40213e3f4d6SMark Murrayname of the type of terminal that is attached 40313e3f4d6SMark Murrayto the client side of the connection. 40413e3f4d6SMark Murray.It "DO SGA" 40513e3f4d6SMark MurrayIndicates that it does not need to receive 40613e3f4d6SMark Murray.Dv IAC GA , 40713e3f4d6SMark Murraythe go ahead command. 40813e3f4d6SMark Murray.It "DO NAWS" 40913e3f4d6SMark MurrayRequests that the client inform the server when 41013e3f4d6SMark Murraythe window (display) size changes. 41113e3f4d6SMark Murray.It "DO TERMINAL-SPEED" 41213e3f4d6SMark MurrayIndicates a desire to be able to request information 41313e3f4d6SMark Murrayabout the speed of the serial line to which 41413e3f4d6SMark Murraythe client is attached. 41513e3f4d6SMark Murray.It "DO XDISPLOC" 41613e3f4d6SMark MurrayIndicates a desire to be able to request the name 41713e3f4d6SMark Murrayof the X windows display that is associated with 41813e3f4d6SMark Murraythe telnet client. 41913e3f4d6SMark Murray.It "DO NEW-ENVIRON" 42013e3f4d6SMark MurrayIndicates a desire to be able to request environment 42113e3f4d6SMark Murrayvariable information, as described in RFC 1572. 42213e3f4d6SMark Murray.It "DO ENVIRON" 42313e3f4d6SMark MurrayIndicates a desire to be able to request environment 42413e3f4d6SMark Murrayvariable information, as described in RFC 1408. 42513e3f4d6SMark Murray.It "DO LINEMODE" 42613e3f4d6SMark MurrayOnly sent if 42713e3f4d6SMark Murray.Nm telnetd 42813e3f4d6SMark Murrayis compiled with support for linemode, and 42913e3f4d6SMark Murrayrequests that the client do line by line processing. 43013e3f4d6SMark Murray.It "DO TIMING-MARK" 43113e3f4d6SMark MurrayOnly sent if 43213e3f4d6SMark Murray.Nm telnetd 43313e3f4d6SMark Murrayis compiled with support for both linemode and 43413e3f4d6SMark Murraykludge linemode, and the client responded with 43513e3f4d6SMark Murray.Dv WONT LINEMODE . 43613e3f4d6SMark MurrayIf the client responds with 43713e3f4d6SMark Murray.Dv WILL TM , 43813e3f4d6SMark Murraythe it is assumed that the client supports 43913e3f4d6SMark Murraykludge linemode. 44013e3f4d6SMark MurrayNote that the 44113e3f4d6SMark Murray.Op Fl k 44213e3f4d6SMark Murrayoption can be used to disable this. 44313e3f4d6SMark Murray.It "DO AUTHENTICATION" 44413e3f4d6SMark MurrayOnly sent if 44513e3f4d6SMark Murray.Nm telnetd 44613e3f4d6SMark Murrayis compiled with support for authentication, and 44713e3f4d6SMark Murrayindicates a willingness to receive authentication 44813e3f4d6SMark Murrayinformation for automatic login. 44913e3f4d6SMark Murray.It "DO ENCRYPT" 45013e3f4d6SMark MurrayOnly sent if 45113e3f4d6SMark Murray.Nm telnetd 45213e3f4d6SMark Murrayis compiled with support for data encryption, and 45313e3f4d6SMark Murrayindicates a willingness to decrypt 45413e3f4d6SMark Murraythe data stream. 45513e3f4d6SMark Murray.El 45613e3f4d6SMark Murray.Sh FILES 45745524cd7SAssar Westerlund.Bl -tag -width /etc/services -compact 45845524cd7SAssar Westerlund.It Pa /etc/services 45945524cd7SAssar Westerlund.It Pa /etc/inittab 46013e3f4d6SMark Murray(UNICOS systems only) 46145524cd7SAssar Westerlund.It Pa /etc/iptos 46213e3f4d6SMark Murray(if supported) 46345524cd7SAssar Westerlund.El 46413e3f4d6SMark Murray.Sh "SEE ALSO" 46513e3f4d6SMark Murray.Xr telnet 1 , 46613e3f4d6SMark Murray.Xr login 1 46713e3f4d6SMark Murray.Sh STANDARDS 46813e3f4d6SMark Murray.Bl -tag -compact -width RFC-1572 46913e3f4d6SMark Murray.It Cm RFC-854 47013e3f4d6SMark Murray.Tn TELNET 47113e3f4d6SMark MurrayPROTOCOL SPECIFICATION 47213e3f4d6SMark Murray.It Cm RFC-855 47313e3f4d6SMark MurrayTELNET OPTION SPECIFICATIONS 47413e3f4d6SMark Murray.It Cm RFC-856 47513e3f4d6SMark MurrayTELNET BINARY TRANSMISSION 47613e3f4d6SMark Murray.It Cm RFC-857 47713e3f4d6SMark MurrayTELNET ECHO OPTION 47813e3f4d6SMark Murray.It Cm RFC-858 47913e3f4d6SMark MurrayTELNET SUPPRESS GO AHEAD OPTION 48013e3f4d6SMark Murray.It Cm RFC-859 48113e3f4d6SMark MurrayTELNET STATUS OPTION 48213e3f4d6SMark Murray.It Cm RFC-860 48313e3f4d6SMark MurrayTELNET TIMING MARK OPTION 48413e3f4d6SMark Murray.It Cm RFC-861 48513e3f4d6SMark MurrayTELNET EXTENDED OPTIONS - LIST OPTION 48613e3f4d6SMark Murray.It Cm RFC-885 48713e3f4d6SMark MurrayTELNET END OF RECORD OPTION 48813e3f4d6SMark Murray.It Cm RFC-1073 48913e3f4d6SMark MurrayTelnet Window Size Option 49013e3f4d6SMark Murray.It Cm RFC-1079 49113e3f4d6SMark MurrayTelnet Terminal Speed Option 49213e3f4d6SMark Murray.It Cm RFC-1091 49313e3f4d6SMark MurrayTelnet Terminal-Type Option 49413e3f4d6SMark Murray.It Cm RFC-1096 49513e3f4d6SMark MurrayTelnet X Display Location Option 49613e3f4d6SMark Murray.It Cm RFC-1123 49713e3f4d6SMark MurrayRequirements for Internet Hosts -- Application and Support 49813e3f4d6SMark Murray.It Cm RFC-1184 49913e3f4d6SMark MurrayTelnet Linemode Option 50013e3f4d6SMark Murray.It Cm RFC-1372 50113e3f4d6SMark MurrayTelnet Remote Flow Control Option 50213e3f4d6SMark Murray.It Cm RFC-1416 50313e3f4d6SMark MurrayTelnet Authentication Option 50413e3f4d6SMark Murray.It Cm RFC-1411 50513e3f4d6SMark MurrayTelnet Authentication: Kerberos Version 4 50613e3f4d6SMark Murray.It Cm RFC-1412 50713e3f4d6SMark MurrayTelnet Authentication: SPX 50813e3f4d6SMark Murray.It Cm RFC-1571 50913e3f4d6SMark MurrayTelnet Environment Option Interoperability Issues 51013e3f4d6SMark Murray.It Cm RFC-1572 51113e3f4d6SMark MurrayTelnet Environment Option 51213e3f4d6SMark Murray.El 51313e3f4d6SMark Murray.Sh BUGS 51413e3f4d6SMark MurraySome 51513e3f4d6SMark Murray.Tn TELNET 51613e3f4d6SMark Murraycommands are only partially implemented. 51713e3f4d6SMark Murray.Pp 51813e3f4d6SMark MurrayBecause of bugs in the original 4.2 BSD 51913e3f4d6SMark Murray.Xr telnet 1 , 52013e3f4d6SMark Murray.Nm telnetd 52113e3f4d6SMark Murrayperforms some dubious protocol exchanges to try to discover if the remote 52213e3f4d6SMark Murrayclient is, in fact, a 4.2 BSD 52313e3f4d6SMark Murray.Xr telnet 1 . 52413e3f4d6SMark Murray.Pp 52513e3f4d6SMark MurrayBinary mode 52613e3f4d6SMark Murrayhas no common interpretation except between similar operating systems 52713e3f4d6SMark Murray(Unix in this case). 52813e3f4d6SMark Murray.Pp 52913e3f4d6SMark MurrayThe terminal type name received from the remote client is converted to 53013e3f4d6SMark Murraylower case. 53113e3f4d6SMark Murray.Pp 53213e3f4d6SMark Murray.Nm Telnetd 53313e3f4d6SMark Murraynever sends 53413e3f4d6SMark Murray.Tn TELNET 53513e3f4d6SMark Murray.Dv IAC GA 53613e3f4d6SMark Murray(go ahead) commands. 537