Commit | Line | Data |
---|---|---|
ec338fb6 KB |
1 | .\" Copyright (c) 1983 The Regents of the University of California. |
2 | .\" All rights reserved. | |
ea3f50ea | 3 | .\" |
ec338fb6 KB |
4 | .\" Redistribution and use in source and binary forms are permitted |
5 | .\" provided that the above copyright notice and this paragraph are | |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
ea3f50ea | 15 | .\" |
ec338fb6 KB |
16 | .\" @(#)telnetd.8 6.4 (Berkeley) %G% |
17 | .\" | |
18 | .TH TELNETD 8 "" | |
ea3f50ea KM |
19 | .UC 5 |
20 | .SH NAME | |
511d63d0 | 21 | telnetd \- DARPA TELNET protocol server |
ea3f50ea KM |
22 | .SH SYNOPSIS |
23 | .B /etc/telnetd | |
ea3f50ea KM |
24 | .SH DESCRIPTION |
25 | .I Telnetd | |
60577684 GM |
26 | is a server which supports the DARPA standard |
27 | .B TELNET | |
28 | virtual terminal protocol. | |
29 | .I Telnetd | |
30 | is invoked by the internet server (see | |
31 | .IR inetd (8)), | |
32 | normally for requests to connect to the | |
33 | .B TELNET | |
34 | port as indicated by the | |
35 | .I /etc/services | |
36 | file (see | |
37 | .IR services (5)). | |
ea3f50ea KM |
38 | .PP |
39 | .I Telnetd | |
40 | operates by allocating a pseudo-terminal device (see | |
41 | .IR pty (4)) | |
42 | for a client, then creating a login process which has | |
43 | the slave side of the pseudo-terminal as | |
44 | .BR stdin , | |
45 | .BR stdout , | |
46 | and | |
47 | .BR stderr . | |
48 | .I Telnetd | |
60577684 GM |
49 | manipulates the master side of the pseudo-terminal, |
50 | implementing the | |
51 | .B TELNET | |
52 | protocol and passing characters | |
53 | between the remote client and the login process. | |
ea3f50ea | 54 | .PP |
60577684 GM |
55 | When a |
56 | .B TELNET | |
57 | session is started up, | |
ea3f50ea | 58 | .I telnetd |
60577684 GM |
59 | sends |
60 | .B TELNET | |
61 | options to the client side indicating | |
62 | a willingness to do | |
63 | .I remote echo | |
64 | of characters, to | |
65 | .I suppress go | |
66 | .IR ahead , | |
67 | and to receive | |
68 | .I terminal type information | |
69 | from the remote client. | |
70 | If the remote client is willing, the remote terminal type is | |
71 | propagated in the environment of the created login process. | |
72 | The pseudo-terminal allocated to the client is configured | |
73 | to operate in \*(lqcooked\*(rq mode, and with XTABS and CRMOD | |
ea3f50ea KM |
74 | enabled (see |
75 | .IR tty (4)). | |
ea3f50ea KM |
76 | .PP |
77 | .I Telnetd | |
60577684 GM |
78 | is willing to |
79 | .IR do : | |
80 | .IR echo , | |
81 | .IR binary , | |
82 | .I suppress go | |
83 | .IR ahead , | |
84 | and | |
85 | .I timing | |
86 | .IR mark . | |
87 | .I Telnetd | |
88 | is willing to have the remote client | |
89 | .IR do : | |
90 | .IR binary , | |
91 | .I terminal | |
92 | .IR type , | |
93 | and | |
94 | .I suppress go | |
95 | .IR ahead . | |
ea3f50ea | 96 | .SH "SEE ALSO" |
ec338fb6 | 97 | telnet(1) |
ea3f50ea | 98 | .SH BUGS |
60577684 GM |
99 | Some |
100 | .B TELNET | |
101 | commands are only partially implemented. | |
102 | .PP | |
103 | The | |
104 | .B TELNET | |
105 | protocol allows for | |
106 | the exchange of the number of lines and columns on the user's terminal, | |
107 | but | |
108 | .I telnetd | |
109 | doesn't make use of them. | |
110 | .PP | |
111 | Because of bugs in the original 4.2 BSD | |
ec338fb6 | 112 | .IR telnet (1), |
60577684 GM |
113 | .I telnetd |
114 | performs some dubious protocol exchanges to try to discover if the remote | |
115 | client is, in fact, a 4.2 BSD | |
ec338fb6 | 116 | .IR telnet (1). |
60577684 GM |
117 | .PP |
118 | .I Binary mode | |
119 | has no common interpretation except between similar operating systems | |
120 | (Unix in this case). | |
121 | .PP | |
122 | The terminal type name received from the remote client is converted to | |
123 | lower case. | |
124 | .PP | |
125 | The | |
126 | .I packet | |
127 | interface to the pseudo-terminal | |
128 | (see | |
129 | .IR pty (4)) | |
130 | should be used for more | |
131 | intelligent flushing of input and output queues. | |
132 | .PP | |
133 | .I Telnetd | |
134 | never sends | |
135 | .B TELNET | |
136 | .I go ahead | |
137 | commands. |