xref: /netbsd-src/libexec/telnetd/telnetd.8 (revision 79d3071f0c04b87185c113a6fb64f03ec88d0331)
1*79d3071fSmaya.\"	$NetBSD: telnetd.8,v 1.32 2018/12/15 23:23:51 maya Exp $
27c0f11b1Sthorpej.\"
3290a2c4fScgd.\" Copyright (c) 1983, 1993
4290a2c4fScgd.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
148e6ab883Sagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
307972ccadScgd.\"	from: @(#)telnetd.8	8.3 (Berkeley) 3/1/94
3161f28255Scgd.\"
32*79d3071fSmaya.Dd December 16, 2018
33290a2c4fScgd.Dt TELNETD 8
34f1247650Sgarbled.Os
35290a2c4fScgd.Sh NAME
36290a2c4fScgd.Nm telnetd
37290a2c4fScgd.Nd DARPA
38290a2c4fScgd.Tn TELNET
39290a2c4fScgdprotocol server
40290a2c4fScgd.Sh SYNOPSIS
41290a2c4fScgd.Nm /usr/libexec/telnetd
425b5d822bSitojun.Op Fl Uhlkns46
43290a2c4fScgd.Op Fl D Ar debugmode
44290a2c4fScgd.Op Fl S Ar tos
45290a2c4fScgd.Op Fl X Ar authtype
467972ccadScgd.Op Fl a Ar authmode
477972ccadScgd.Op Fl edebug
489f01fb50Stls.Op Fl g Ar gettyent
497972ccadScgd.Op Fl u Ar len
50290a2c4fScgd.Op Fl debug Op Ar port
51290a2c4fScgd.Sh DESCRIPTION
52290a2c4fScgdThe
5327ffa069Senami.Nm
54290a2c4fScgdcommand is a server which supports the
55290a2c4fScgd.Tn DARPA
56290a2c4fScgdstandard
57290a2c4fScgd.Tn TELNET
5861f28255Scgdvirtual terminal protocol.
5927ffa069Senami.Nm
60290a2c4fScgdis normally invoked by the internet server (see
61290a2c4fScgd.Xr inetd 8 )
62290a2c4fScgdfor requests to connect to the
63290a2c4fScgd.Tn TELNET
6461f28255Scgdport as indicated by the
65290a2c4fScgd.Pa /etc/services
6661f28255Scgdfile (see
67290a2c4fScgd.Xr services 5 ) .
68290a2c4fScgdThe
69290a2c4fScgd.Fl debug
70290a2c4fScgdoption may be used to start up
7127ffa069Senami.Nm
7261f28255Scgdmanually, instead of through
73290a2c4fScgd.Xr inetd 8 .
74290a2c4fScgdIf started up this way,
75290a2c4fScgd.Ar port
76290a2c4fScgdmay be specified to run
7727ffa069Senami.Nm
78290a2c4fScgdon an alternate
79290a2c4fScgd.Tn TCP
80290a2c4fScgdport number.
81290a2c4fScgd.Pp
82290a2c4fScgdThe
8327ffa069Senami.Nm
84290a2c4fScgdcommand accepts the following options:
85290a2c4fScgd.Bl -tag -width "-a authmode"
86290a2c4fScgd.It Fl a Ar authmode
87290a2c4fScgdThis option may be used for specifying what mode should
88290a2c4fScgdbe used for authentication.
89290a2c4fScgdNote that this option is only useful if
9027ffa069Senami.Nm
91290a2c4fScgdhas been compiled with support for the
92290a2c4fScgd.Dv AUTHENTICATION
93290a2c4fScgdoption.
94290a2c4fScgdThere are several valid values for
95290a2c4fScgd.Ar authmode :
96290a2c4fScgd.Bl -tag -width debug
97290a2c4fScgd.It debug
98290a2c4fScgdTurns on authentication debugging code.
99290a2c4fScgd.It user
100290a2c4fScgdOnly allow connections when the remote user
101290a2c4fScgdcan provide valid authentication information
102290a2c4fScgdto identify the remote user,
103290a2c4fScgdand is allowed access to the specified account
104290a2c4fScgdwithout providing a password.
105290a2c4fScgd.It valid
106290a2c4fScgdOnly allow connections when the remote user
107290a2c4fScgdcan provide valid authentication information
108290a2c4fScgdto identify the remote user.
109290a2c4fScgdThe
110290a2c4fScgd.Xr login 1
111290a2c4fScgdcommand will provide any additional user verification
112290a2c4fScgdneeded if the remote user is not allowed automatic
113290a2c4fScgdaccess to the specified account.
114290a2c4fScgd.It other
115290a2c4fScgdOnly allow connections that supply some authentication information.
116290a2c4fScgdThis option is currently not supported
117290a2c4fScgdby any of the existing authentication mechanisms,
118290a2c4fScgdand is thus the same as specifying
119290a2c4fScgd.Fl a
120290a2c4fScgd.Cm valid .
121290a2c4fScgd.It none
122290a2c4fScgdThis is the default state.
123290a2c4fScgdAuthentication information is not required.
124290a2c4fScgdIf no or insufficient authentication information
125290a2c4fScgdis provided, then the
126290a2c4fScgd.Xr login 1
127290a2c4fScgdprogram will provide the necessary user
128290a2c4fScgdverification.
129290a2c4fScgd.It off
130290a2c4fScgdThis disables the authentication code.
131290a2c4fScgdAll user verification will happen through the
132290a2c4fScgd.Xr login 1
133290a2c4fScgdprogram.
134290a2c4fScgd.El
135290a2c4fScgd.It Fl D Ar debugmode
136290a2c4fScgdThis option may be used for debugging purposes.
137290a2c4fScgdThis allows
13827ffa069Senami.Nm
139290a2c4fScgdto print out debugging information
140290a2c4fScgdto the connection, allowing the user to see what
14127ffa069Senami.Nm
14261f28255Scgdis doing.
143290a2c4fScgdThere are several possible values for
144290a2c4fScgd.Ar debugmode :
145290a2c4fScgd.Bl -tag -width exercise
146290a2c4fScgd.It Cm options
147290a2c4fScgdPrints information about the negotiation of
148290a2c4fScgd.Tn TELNET
149290a2c4fScgdoptions.
150290a2c4fScgd.It Cm report
151290a2c4fScgdPrints the
152290a2c4fScgd.Cm options
153290a2c4fScgdinformation, plus some additional information
154290a2c4fScgdabout what processing is going on.
155290a2c4fScgd.It Cm netdata
156290a2c4fScgdDisplays the data stream received by
157990562bfSwiz.Nm .
158290a2c4fScgd.It Cm ptydata
159290a2c4fScgdDisplays data written to the pty.
160290a2c4fScgd.It Cm exercise
161290a2c4fScgdHas not been implemented yet.
162290a2c4fScgd.El
163290a2c4fScgd.It Fl debug
164290a2c4fScgdEnables debugging on each socket created by
16527ffa069Senami.Nm
166290a2c4fScgd(see
167290a2c4fScgd.Dv SO_DEBUG
168290a2c4fScgdin
169290a2c4fScgd.Xr socket 2 ) .
170290a2c4fScgd.It Fl edebug
171290a2c4fScgdIf
17227ffa069Senami.Nm
173290a2c4fScgdhas been compiled with support for data encryption, then the
174290a2c4fScgd.Fl edebug
175290a2c4fScgdoption may be used to enable encryption debugging code.
1769f01fb50Stls.It Fl g Ar gettyent
1779f01fb50StlsSpecifies which entry from
1789f01fb50Stls.Pa /etc/gettytab
1799f01fb50Stlsshould be used to get banner strings, login program and
180d6285bbfSwizother information.
181d6285bbfSwizThe default entry is
1829f01fb50Stls.Dv default .
183290a2c4fScgd.It Fl h
184290a2c4fScgdDisables the printing of host-specific information before
185290a2c4fScgdlogin has been completed.
186290a2c4fScgd.It Fl k
187290a2c4fScgdThis option is only useful if
18827ffa069Senami.Nm
189d6285bbfSwizhas been compiled with both linemode and kludge linemode support.
190d6285bbfSwizIf the
191290a2c4fScgd.Fl k
192d6285bbfSwizoption is specified,
193d6285bbfSwizthen if the remote client does not support the
194290a2c4fScgd.Dv LINEMODE
195290a2c4fScgdoption, then
19627ffa069Senami.Nm
197290a2c4fScgdwill operate in character at a time mode.
198290a2c4fScgdIt will still support kludge linemode, but will only
199d6285bbfSwizgo into kludge linemode if the remote client requests it.
200290a2c4fScgd(This is done by by the client sending
201290a2c4fScgd.Dv DONT SUPPRESS-GO-AHEAD
202290a2c4fScgdand
203290a2c4fScgd.Dv DONT ECHO . )
204290a2c4fScgdThe
205290a2c4fScgd.Fl k
206290a2c4fScgdoption is most useful when there are remote clients
207290a2c4fScgdthat do not support kludge linemode, but pass the heuristic
208290a2c4fScgd(if they respond with
209290a2c4fScgd.Dv WILL TIMING-MARK
210290a2c4fScgdin response to a
211290a2c4fScgd.Dv DO TIMING-MARK )
212290a2c4fScgdfor kludge linemode support.
213290a2c4fScgd.It Fl l
214d6285bbfSwizSpecifies line mode.
215d6285bbfSwizTries to force clients to use line-at-a-time mode.
216290a2c4fScgdIf the
217290a2c4fScgd.Dv LINEMODE
218290a2c4fScgdoption is not supported, it will go
219290a2c4fScgdinto kludge linemode.
220290a2c4fScgd.It Fl n
221290a2c4fScgdDisable
222290a2c4fScgd.Dv TCP
223d6285bbfSwizkeep-alives.
224d6285bbfSwizNormally
22527ffa069Senami.Nm
226290a2c4fScgdenables the
227290a2c4fScgd.Tn TCP
228290a2c4fScgdkeep-alive mechanism to probe connections that
229290a2c4fScgdhave been idle for some period of time to determine
230290a2c4fScgdif the client is still there, so that idle connections
231290a2c4fScgdfrom machines that have crashed or can no longer
232290a2c4fScgdbe reached may be cleaned up.
233290a2c4fScgd.It Fl s
234290a2c4fScgdThis option is only enabled if
23527ffa069Senami.Nm
23663f386cdSdeanis compiled with support for secure logins.
237290a2c4fScgdIt causes the
238290a2c4fScgd.Fl s
239290a2c4fScgdoption to be passed on to
240290a2c4fScgd.Xr login 1 ,
241290a2c4fScgdand thus is only useful if
242290a2c4fScgd.Xr login 1
243290a2c4fScgdsupports the
244290a2c4fScgd.Fl s
245d6285bbfSwizflag to indicate that only Kerberos or S/Key
246290a2c4fScgdvalidated logins are allowed, and is
247290a2c4fScgdusually useful for controlling remote logins
248290a2c4fScgdfrom outside of a firewall.
249290a2c4fScgd.It Fl S Ar tos
25000ed7f60SwizThis option sets the IP Type-of Service (TOS) option
25100ed7f60Swizon the connection to the value tos, which may be a
25200ed7f60Swiznumeric TOS value or a symbolic TOS name found in the
25300ed7f60Swiz.Pa /etc/iptos
25400ed7f60Swizfile.
25565eb66d1SwizThis option has no effect on
25665eb66d1Swiz.Nx .
25765eb66d1Swiz.\"The option has no effect on systems that do not
25865eb66d1Swiz.\"support
25965eb66d1Swiz.\".Xr parsetos 3
26065eb66d1Swiz.\"routine and the
26165eb66d1Swiz.\".Pa /etc/iptos
26265eb66d1Swiz.\"file.
263290a2c4fScgd.It Fl u Ar len
264290a2c4fScgdThis option is used to specify the size of the field
265290a2c4fScgdin the
266290a2c4fScgd.Dv utmp
267290a2c4fScgdstructure that holds the remote host name.
268290a2c4fScgdIf the resolved host name is longer than
269290a2c4fScgd.Ar len ,
270290a2c4fScgdthe dotted decimal value will be used instead.
271290a2c4fScgdThis allows hosts with very long host names that
272290a2c4fScgdoverflow this field to still be uniquely identified.
273290a2c4fScgdSpecifying
274290a2c4fScgd.Fl u0
275290a2c4fScgdindicates that only dotted decimal addresses
276290a2c4fScgdshould be put into the
277290a2c4fScgd.Pa utmp
278290a2c4fScgdfile.
279290a2c4fScgd.It Fl U
280290a2c4fScgdThis option causes
28127ffa069Senami.Nm
282290a2c4fScgdto refuse connections from addresses that
283d6285bbfSwizcannot be mapped back into a symbolic name via the
2849074ea7cSwiz.Xr getnameinfo 3
285290a2c4fScgdroutine.
286290a2c4fScgd.It Fl X Ar authtype
287290a2c4fScgdThis option is only valid if
28827ffa069Senami.Nm
289290a2c4fScgdhas been built with support for the authentication option.
290290a2c4fScgdIt disables the use of
291290a2c4fScgd.Ar authtype
292d6285bbfSwizauthentication, and can be used to temporarily disable
293290a2c4fScgda specific authentication type without having to recompile
294990562bfSwiz.Nm .
2955b5d822bSitojun.It Fl 4
2965b5d822bSitojun.It Fl 6
2975b5d822bSitojunSpecifies address family to be used on
2985b5d822bSitojun.Fl debug
2995b5d822bSitojunmode.
3005b5d822bSitojunDuring normal operation
3015b5d822bSitojun.Po
3025b5d822bSitojuncalled from
3035b5d822bSitojun.Xr inetd 8
3045b5d822bSitojun.Pc
3055b5d822bSitojun.Nm
3065b5d822bSitojunwill use the file descriptor passed from
3075b5d822bSitojun.Xr inetd 8 .
308290a2c4fScgd.El
309290a2c4fScgd.Pp
31027ffa069Senami.Nm
31161f28255Scgdoperates by allocating a pseudo-terminal device (see
312290a2c4fScgd.Xr pty 4 )
31361f28255Scgdfor a client, then creating a login process which has
31461f28255Scgdthe slave side of the pseudo-terminal as
315290a2c4fScgd.Dv stdin ,
316290a2c4fScgd.Dv stdout
31761f28255Scgdand
318290a2c4fScgd.Dv stderr .
31927ffa069Senami.Nm
32061f28255Scgdmanipulates the master side of the pseudo-terminal,
32161f28255Scgdimplementing the
322290a2c4fScgd.Tn TELNET
32361f28255Scgdprotocol and passing characters
32461f28255Scgdbetween the remote client and the login process.
325290a2c4fScgd.Pp
32661f28255ScgdWhen a
327290a2c4fScgd.Tn TELNET
32861f28255Scgdsession is started up,
32927ffa069Senami.Nm
33061f28255Scgdsends
331290a2c4fScgd.Tn TELNET
33261f28255Scgdoptions to the client side indicating
333d6285bbfSwiza willingness to do the following
334290a2c4fScgd.Tn TELNET
335290a2c4fScgdoptions, which are described in more detail below:
336290a2c4fScgd.Bd -literal -offset indent
337290a2c4fScgdDO AUTHENTICATION
338290a2c4fScgdWILL ENCRYPT
339290a2c4fScgdDO TERMINAL TYPE
340290a2c4fScgdDO TSPEED
341290a2c4fScgdDO XDISPLOC
342290a2c4fScgdDO NEW-ENVIRON
343290a2c4fScgdDO ENVIRON
344290a2c4fScgdWILL SUPPRESS GO AHEAD
345290a2c4fScgdDO ECHO
346290a2c4fScgdDO LINEMODE
347290a2c4fScgdDO NAWS
348290a2c4fScgdWILL STATUS
349290a2c4fScgdDO LFLOW
350290a2c4fScgdDO TIMING-MARK
351290a2c4fScgd.Ed
352290a2c4fScgd.Pp
35361f28255ScgdThe pseudo-terminal allocated to the client is configured
354290a2c4fScgdto operate in \*(lqcooked\*(rq mode, and with
355290a2c4fScgd.Dv XTABS and
356290a2c4fScgd.Dv CRMOD
35761f28255Scgdenabled (see
358290a2c4fScgd.Xr tty 4 ) .
359290a2c4fScgd.Pp
36027ffa069Senami.Nm
361290a2c4fScgdhas support for enabling locally the following
362290a2c4fScgd.Tn TELNET
363290a2c4fScgdoptions:
364290a2c4fScgd.Bl -tag -width "DO AUTHENTICATION"
365290a2c4fScgd.It "WILL ECHO"
366290a2c4fScgdWhen the
367290a2c4fScgd.Dv LINEMODE
368290a2c4fScgdoption is enabled, a
369290a2c4fScgd.Dv WILL ECHO
370290a2c4fScgdor
371290a2c4fScgd.Dv WONT ECHO
372290a2c4fScgdwill be sent to the client to indicate the
373290a2c4fScgdcurrent state of terminal echoing.
374290a2c4fScgdWhen terminal echo is not desired, a
375290a2c4fScgd.Dv WILL ECHO
376290a2c4fScgdis sent to indicate that
377290a2c4fScgd.Tn telnetd
378290a2c4fScgdwill take care of echoing any data that needs to be
379290a2c4fScgdechoed to the terminal, and then nothing is echoed.
380290a2c4fScgdWhen terminal echo is desired, a
381290a2c4fScgd.Dv WONT ECHO
382290a2c4fScgdis sent to indicate that
383290a2c4fScgd.Tn telnetd
384290a2c4fScgdwill not be doing any terminal echoing, so the
385290a2c4fScgdclient should do any terminal echoing that is needed.
386290a2c4fScgd.It "WILL BINARY"
387290a2c4fScgdIndicates that the client is willing to send a
388290a2c4fScgd8 bits of data, rather than the normal 7 bits
389290a2c4fScgdof the Network Virtual Terminal.
390290a2c4fScgd.It "WILL SGA"
391290a2c4fScgdIndicates that it will not be sending
392290a2c4fScgd.Dv IAC GA ,
393290a2c4fScgdgo ahead, commands.
394290a2c4fScgd.It "WILL STATUS"
395290a2c4fScgdIndicates a willingness to send the client, upon
396290a2c4fScgdrequest, of the current status of all
397290a2c4fScgd.Tn TELNET
398290a2c4fScgdoptions.
399290a2c4fScgd.It "WILL TIMING-MARK"
400290a2c4fScgdWhenever a
401290a2c4fScgd.Dv DO TIMING-MARK
402290a2c4fScgdcommand is received, it is always responded
403290a2c4fScgdto with a
404290a2c4fScgd.Dv WILL TIMING-MARK
405290a2c4fScgd.It "WILL LOGOUT"
406290a2c4fScgdWhen a
407290a2c4fScgd.Dv DO LOGOUT
408290a2c4fScgdis received, a
409290a2c4fScgd.Dv WILL LOGOUT
410290a2c4fScgdis sent in response, and the
411290a2c4fScgd.Tn TELNET
412290a2c4fScgdsession is shut down.
413290a2c4fScgd.It "WILL ENCRYPT"
414290a2c4fScgdOnly sent if
41527ffa069Senami.Nm
416290a2c4fScgdis compiled with support for data encryption, and
417d6285bbfSwizindicates a willingness to decrypt the data stream.
418290a2c4fScgd.El
419290a2c4fScgd.Pp
42027ffa069Senami.Nm
421290a2c4fScgdhas support for enabling remotely the following
422290a2c4fScgd.Tn TELNET
423290a2c4fScgdoptions:
424290a2c4fScgd.Bl -tag -width "DO AUTHENTICATION"
425290a2c4fScgd.It "DO BINARY"
426290a2c4fScgdSent to indicate that
427290a2c4fScgd.Tn telnetd
428290a2c4fScgdis willing to receive an 8 bit data stream.
429290a2c4fScgd.It "DO LFLOW"
430290a2c4fScgdRequests that the client handle flow control
431290a2c4fScgdcharacters remotely.
432290a2c4fScgd.It "DO ECHO"
4336982982fSperryThis is not really supported, but is sent to identify a
4346982982fSperry.Bx 4.2
435290a2c4fScgd.Xr telnet 1
436290a2c4fScgdclient, which will improperly respond with
437290a2c4fScgd.Dv WILL ECHO .
438290a2c4fScgdIf a
439290a2c4fScgd.Dv WILL ECHO
440290a2c4fScgdis received, a
441290a2c4fScgd.Dv DONT ECHO
442290a2c4fScgdwill be sent in response.
443290a2c4fScgd.It "DO TERMINAL-TYPE"
444290a2c4fScgdIndicates a desire to be able to request the
445290a2c4fScgdname of the type of terminal that is attached
446290a2c4fScgdto the client side of the connection.
447290a2c4fScgd.It "DO SGA"
448290a2c4fScgdIndicates that it does not need to receive
449290a2c4fScgd.Dv IAC GA ,
450290a2c4fScgdthe go ahead command.
451290a2c4fScgd.It "DO NAWS"
452290a2c4fScgdRequests that the client inform the server when
453290a2c4fScgdthe window (display) size changes.
454290a2c4fScgd.It "DO TERMINAL-SPEED"
455290a2c4fScgdIndicates a desire to be able to request information
456290a2c4fScgdabout the speed of the serial line to which
457290a2c4fScgdthe client is attached.
458290a2c4fScgd.It "DO XDISPLOC"
459290a2c4fScgdIndicates a desire to be able to request the name
460290a2c4fScgdof the X windows display that is associated with
461290a2c4fScgdthe telnet client.
462290a2c4fScgd.It "DO NEW-ENVIRON"
463290a2c4fScgdIndicates a desire to be able to request environment
464290a2c4fScgdvariable information, as described in RFC 1572.
465290a2c4fScgd.It "DO ENVIRON"
466290a2c4fScgdIndicates a desire to be able to request environment
467290a2c4fScgdvariable information, as described in RFC 1408.
468290a2c4fScgd.It "DO LINEMODE"
469290a2c4fScgdOnly sent if
47027ffa069Senami.Nm
471290a2c4fScgdis compiled with support for linemode, and
472290a2c4fScgdrequests that the client do line by line processing.
473290a2c4fScgd.It "DO TIMING-MARK"
474290a2c4fScgdOnly sent if
47527ffa069Senami.Nm
476290a2c4fScgdis compiled with support for both linemode and
477290a2c4fScgdkludge linemode, and the client responded with
478290a2c4fScgd.Dv WONT LINEMODE .
479290a2c4fScgdIf the client responds with
480290a2c4fScgd.Dv WILL TM ,
481d6285bbfSwizthe it is assumed that the client supports kludge linemode.
482290a2c4fScgdNote that the
483290a2c4fScgd.Op Fl k
484290a2c4fScgdoption can be used to disable this.
485290a2c4fScgd.It "DO AUTHENTICATION"
486290a2c4fScgdOnly sent if
48727ffa069Senami.Nm
488290a2c4fScgdis compiled with support for authentication, and
489290a2c4fScgdindicates a willingness to receive authentication
490290a2c4fScgdinformation for automatic login.
491290a2c4fScgd.It "DO ENCRYPT"
492290a2c4fScgdOnly sent if
49327ffa069Senami.Nm
494290a2c4fScgdis compiled with support for data encryption, and
495d6285bbfSwizindicates a willingness to decrypt the data stream.
496c89a574fStsarna.El
497c89a574fStsarna.Pp
498c89a574fStsarnaAt the end of a login session,
499c89a574fStsarna.Nm
500c89a574fStsarnainvokes the
501c89a574fStsarna.Xr ttyaction 3
502c89a574fStsarnafacility with an action of "telnetd" and user "root"
503c89a574fStsarnato execute site-specific commands.
504290a2c4fScgd.Sh FILES
505f4bfcdb4Sjoerg.Bl -item -compact
506f4bfcdb4Sjoerg.It
507290a2c4fScgd.Pa /etc/services
508f4bfcdb4Sjoerg.It
509290a2c4fScgd.Pa /etc/iptos
510290a2c4fScgd(if supported)
511f4bfcdb4Sjoerg.El
512b2275072Scgd.Sh SEE ALSO
513290a2c4fScgd.Xr login 1 ,
51463f386cdSdean.Xr skey 1 ,
515aade0aa2Smsaitoh.Xr telnet 1 ,
5162861f340Smsaitoh.Xr ttyaction 3
517290a2c4fScgd.Sh STANDARDS
51847190e80Swiz.Bl -tag -compact -width "RFC 1572  "
51947190e80Swiz.It RFC 854
520290a2c4fScgd.Tn TELNET
521290a2c4fScgdPROTOCOL SPECIFICATION
52247190e80Swiz.It RFC 855
523290a2c4fScgdTELNET OPTION SPECIFICATIONS
52447190e80Swiz.It RFC 856
525290a2c4fScgdTELNET BINARY TRANSMISSION
52647190e80Swiz.It RFC 857
527290a2c4fScgdTELNET ECHO OPTION
52847190e80Swiz.It RFC 858
529290a2c4fScgdTELNET SUPPRESS GO AHEAD OPTION
53047190e80Swiz.It RFC 859
531290a2c4fScgdTELNET STATUS OPTION
53247190e80Swiz.It RFC 860
533290a2c4fScgdTELNET TIMING MARK OPTION
53447190e80Swiz.It RFC 861
535290a2c4fScgdTELNET EXTENDED OPTIONS - LIST OPTION
53647190e80Swiz.It RFC 885
537290a2c4fScgdTELNET END OF RECORD OPTION
53847190e80Swiz.It RFC 1073
539290a2c4fScgdTelnet Window Size Option
54047190e80Swiz.It RFC 1079
541290a2c4fScgdTelnet Terminal Speed Option
54247190e80Swiz.It RFC 1091
543290a2c4fScgdTelnet Terminal-Type Option
54447190e80Swiz.It RFC 1096
545290a2c4fScgdTelnet X Display Location Option
54647190e80Swiz.It RFC 1123
547290a2c4fScgdRequirements for Internet Hosts -- Application and Support
54847190e80Swiz.It RFC 1184
549290a2c4fScgdTelnet Linemode Option
55047190e80Swiz.It RFC 1372
551290a2c4fScgdTelnet Remote Flow Control Option
55247190e80Swiz.It RFC 1416
553290a2c4fScgdTelnet Authentication Option
55447190e80Swiz.It RFC 1411
555290a2c4fScgdTelnet Authentication: Kerberos Version 4
55647190e80Swiz.It RFC 1571
557290a2c4fScgdTelnet Environment Option Interoperability Issues
55847190e80Swiz.It RFC 1572
559290a2c4fScgdTelnet Environment Option
5603a4a79d4Smrg.El
561290a2c4fScgd.Sh BUGS
56261f28255ScgdSome
563290a2c4fScgd.Tn TELNET
56461f28255Scgdcommands are only partially implemented.
565290a2c4fScgd.Pp
5666982982fSperryBecause of bugs in the original
5676982982fSperry.Bx 4.2
568290a2c4fScgd.Xr telnet 1 ,
56927ffa069Senami.Nm
57061f28255Scgdperforms some dubious protocol exchanges to try to discover if the remote
5716982982fSperryclient is, in fact, a
5726982982fSperry.Bx 4.2
573290a2c4fScgd.Xr telnet 1 .
574290a2c4fScgd.Pp
575290a2c4fScgdBinary mode
57661f28255Scgdhas no common interpretation except between similar operating systems
577dc026e05Sfair.Po
578dc026e05Sfair.Ux
579dc026e05Sfairin this case
580dc026e05Sfair.Pc .
581290a2c4fScgd.Pp
58261f28255ScgdThe terminal type name received from the remote client is converted to
58361f28255Scgdlower case.
584290a2c4fScgd.Pp
58527ffa069Senami.Nm
58661f28255Scgdnever sends
587290a2c4fScgd.Tn TELNET
588290a2c4fScgd.Dv IAC GA
589290a2c4fScgd(go ahead) commands.
590