Add "nocrypt" target to create a subdirectory
[unix-history] / usr / src / libexec / telnetd / telnetd.8
CommitLineData
ec338fb6
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
ea3f50ea 3.\"
15f0bc38 4.\" %sccs.include.redist.man%
ea3f50ea 5.\"
8832c633 6.\" @(#)telnetd.8 6.9 (Berkeley) %G%
ec338fb6
KB
7.\"
8.TH TELNETD 8 ""
ea3f50ea
KM
9.UC 5
10.SH NAME
511d63d0 11telnetd \- DARPA TELNET protocol server
ea3f50ea 12.SH SYNOPSIS
4a8a7128
PB
13.B /etc/telnetd
14[\fB\-debug\fP [\fIport\fP]]
15[\fB\-l]
16[\fB\-D options\fP]
17[\fB\-D report\fP]
18[\fB\-D exercise\fP]
19[\fB\-D netdata\fP]
20[\fB\-D ptydata\fP]
ea3f50ea
KM
21.SH DESCRIPTION
22.I Telnetd
60577684
GM
23is a server which supports the DARPA standard
24.B TELNET
25virtual terminal protocol.
26.I Telnetd
27is invoked by the internet server (see
28.IR inetd (8)),
29normally for requests to connect to the
30.B TELNET
31port as indicated by the
32.I /etc/services
33file (see
34.IR services (5)).
4a8a7128
PB
35If the \fB\-debug\fP may be used, to start up \fBtelnetd\fP
36manually, instead of through
37.IR inetd (8).
38If started up this way, \fIport\fP may be specified to
39run \fItelnetd\fP on an alternate TCP port number.
40.PP
41The \fB\-D\fP option may be used for debugging purposes.
42This allows \fItelnet\fR to print out debugging information
43to the connection, allowing the user to see what telnetd
44is doing.
45There are several modifiers:
46\fBoptions\fR prints information about the negotiation
47of \fBTELNET\fR options,
48\fBreport\fR prints the \fBoptions\fR information, plus
49some additional information about what processing is going on,
50\fBnetdata\fP displays the data stream received by \fItelnetd\fP,
51\fBptydata\fP displays data written to the pty, and
52\fBexercise\fR has not been implemented yet.
ea3f50ea
KM
53.PP
54.I Telnetd
55operates by allocating a pseudo-terminal device (see
56.IR pty (4))
57for a client, then creating a login process which has
58the slave side of the pseudo-terminal as
59.BR stdin ,
60.BR stdout ,
61and
62.BR stderr .
63.I Telnetd
60577684
GM
64manipulates the master side of the pseudo-terminal,
65implementing the
66.B TELNET
67protocol and passing characters
68between the remote client and the login process.
ea3f50ea 69.PP
60577684
GM
70When a
71.B TELNET
72session is started up,
ea3f50ea 73.I telnetd
60577684
GM
74sends
75.B TELNET
76options to the client side indicating
77a willingness to do
78.I remote echo
79of characters, to
80.I suppress go
81.IR ahead ,
e55e60dd
GM
82to do
83.I remote flow
84.IR control ,
60577684 85and to receive
e55e60dd
GM
86.I terminal type
87.IR information ,
88.I terminal speed
89.IR information ,
90and
91.I window size information
60577684
GM
92from the remote client.
93If the remote client is willing, the remote terminal type is
94propagated in the environment of the created login process.
95The pseudo-terminal allocated to the client is configured
96to operate in \*(lqcooked\*(rq mode, and with XTABS and CRMOD
ea3f50ea
KM
97enabled (see
98.IR tty (4)).
ea3f50ea
KM
99.PP
100.I Telnetd
60577684
GM
101is willing to
102.IR do :
103.IR echo ,
104.IR binary ,
105.I suppress go
106.IR ahead ,
107and
108.I timing
109.IR mark .
110.I Telnetd
111is willing to have the remote client
112.IR do :
4a8a7128 113.IR linemode ,
60577684
GM
114.IR binary ,
115.I terminal
116.IR type ,
e55e60dd
GM
117.I terminal
118.IR speed ,
119.I window
120.IR size ,
121.I toggle flow
122.IR control ,
4a8a7128
PB
123.IR environment ,
124.I X display
125.IR location ,
60577684
GM
126and
127.I suppress go
128.IR ahead .
ea3f50ea 129.SH "SEE ALSO"
ec338fb6 130telnet(1)
ea3f50ea 131.SH BUGS
60577684
GM
132Some
133.B TELNET
134commands are only partially implemented.
135.PP
60577684 136Because of bugs in the original 4.2 BSD
ec338fb6 137.IR telnet (1),
60577684
GM
138.I telnetd
139performs some dubious protocol exchanges to try to discover if the remote
140client is, in fact, a 4.2 BSD
ec338fb6 141.IR telnet (1).
60577684
GM
142.PP
143.I Binary mode
144has no common interpretation except between similar operating systems
145(Unix in this case).
146.PP
147The terminal type name received from the remote client is converted to
148lower case.
149.PP
60577684
GM
150.I Telnetd
151never sends
152.B TELNET
153.I go ahead
154commands.