version 2, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
---- |
| |
|
2 |
__NAME__ |
| |
|
3 |
|
| |
|
4 |
|
| |
|
5 |
telnet - user interface to the TELNET |
| |
|
6 |
protocol |
| |
|
7 |
__SYNOPSIS__ |
| |
|
8 |
|
| |
|
9 |
|
| |
|
10 |
telnet [[-468ELadr] [[-S tos] [[-e escapechar] [[-l user] [[-n |
| |
|
11 |
tracefile] [[ |
| |
|
12 |
host |
| |
|
13 |
[[port] |
| |
|
14 |
] |
| |
|
15 |
__DESCRIPTION__ |
| |
|
16 |
|
| |
|
17 |
|
| |
|
18 |
The telnet command is used for interactive communication |
| |
|
19 |
with another host using the TELNET protocol. |
| |
|
20 |
It begins in command mode, where it prints a telnet prompt |
| |
|
21 |
( |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
Options: |
| |
|
25 |
-4 Force IPv4 address resolution. |
| |
|
26 |
|
| |
|
27 |
|
| |
|
28 |
-6Force IPv6 address resolution.-8Request 8-bit operation. This causes an attempt tonegotiate the TELNET BINARY option for both input and output. By default telnet is not 8-bit clean. |
| |
|
29 |
|
| |
|
30 |
|
| |
|
31 |
-E |
| |
|
32 |
Disables the escape character functionality; that is, sets |
| |
|
33 |
the escape character to ``no character''. |
| |
|
34 |
|
| |
|
35 |
|
| |
|
36 |
-L |
| |
|
37 |
Specifies an 8-bit data path on output. This causes the |
| |
|
38 |
TELNET BINARY option to be negotiated on just |
| |
|
39 |
output. |
| |
|
40 |
|
| |
|
41 |
|
| |
|
42 |
-a |
| |
|
43 |
Attempt automatic login. Currently, this sends the user name |
| |
|
44 |
via the USER variable of the ENVIRON |
| |
|
45 |
option if supported by the remote system. The username is |
| |
|
46 |
retrieved via getlogin(3). |
| |
|
47 |
|
| |
|
48 |
|
| |
|
49 |
-d |
| |
|
50 |
Sets the initial value of the debug toggle to |
| |
|
51 |
TRUE. |
| |
|
52 |
|
| |
|
53 |
|
| |
|
54 |
-r |
| |
|
55 |
Emulate rlogin(1). In this mode, the default escape |
| |
|
56 |
character is a tilde. Also, the interpretation of the escape |
| |
|
57 |
character is changed: an escape character fol- lowed by a |
| |
|
58 |
dot causes telnet to disconnect from the remote host. A ^Z |
| |
|
59 |
instead of a dot suspends telnet, and a ^] (the default |
| |
|
60 |
telnet escape character) gener- ates a normal telnet prompt. |
| |
|
61 |
These codes are accepted only at the beginning of a |
| |
|
62 |
line. |
| |
|
63 |
|
| |
|
64 |
|
| |
|
65 |
-S tos |
| |
|
66 |
Sets the IP type-of-service (TOS) option for the tel- net |
| |
|
67 |
connection to the value tos. |
| |
|
68 |
|
| |
|
69 |
|
| |
|
70 |
-e escapechar |
| |
|
71 |
Sets the escape character to escapechar. If no char- acter |
| |
|
72 |
is supplied, no escape character will be used. Entering the |
| |
|
73 |
escape character while connected causes telnet to drop to |
| |
|
74 |
command mode. |
| |
|
75 |
|
| |
|
76 |
|
| |
|
77 |
-l user |
| |
|
78 |
Specify user as the user to log in as on the remote system. |
| |
|
79 |
This is accomplished by sending the specified name as the |
| |
|
80 |
USER environment variable, so it requires that the |
| |
|
81 |
remote system support the TELNET ENVIRON option. |
| |
|
82 |
This option implies the -a option, and may also be used with |
| |
|
83 |
the open command. |
| |
|
84 |
|
| |
|
85 |
|
| |
|
86 |
-n tracefile |
| |
|
87 |
Opens tracefile for recording trace information. See the set |
| |
|
88 |
tracefile command below. |
| |
|
89 |
|
| |
|
90 |
|
| |
|
91 |
host |
| |
|
92 |
Specifies a host to contact over the network. |
| |
|
93 |
|
| |
|
94 |
|
| |
|
95 |
port |
| |
|
96 |
Specifies a port number or service name to contact. If not |
| |
|
97 |
specified, the telnet port (23) is used. |
| |
|
98 |
|
| |
|
99 |
|
| |
|
100 |
Protocol: |
| |
|
101 |
|
| |
|
102 |
|
| |
|
103 |
Once a connection has been opened, telnet will attempt to |
| |
|
104 |
enable the TELNET LINEMODE option. If this fails, |
| |
|
105 |
then telnet will revert to one of two input modes: either |
| |
|
106 |
``char- acter at a time'' or ``old line by line'' depending |
| |
|
107 |
on what the remote system supports. |
| |
|
108 |
|
| |
|
109 |
|
| |
|
110 |
When LINEMODE is enabled, character processing is |
| |
|
111 |
done on the local system, under the control of the remote |
| |
|
112 |
system. When input editing or character echoing is to be |
| |
|
113 |
disabled, the remote system will relay that information. The |
| |
|
114 |
remote system will also relay changes to any special |
| |
|
115 |
characters that happen on the remote system, so that they |
| |
|
116 |
can take effect on the local system. |
| |
|
117 |
|
| |
|
118 |
|
| |
|
119 |
In ``character at a time'' mode, most text typed is immedi- |
| |
|
120 |
ately sent to the remote host for processing. |
| |
|
121 |
|
| |
|
122 |
|
| |
|
123 |
In ``old line by line'' mode, all text is echoed locally, |
| |
|
124 |
and (normally) only completed lines are sent to the remote |
| |
|
125 |
host. The ``local echo character'' (initially ``^E'') may be |
| |
|
126 |
used to turn off and on the local echo (this would mostly be |
| |
|
127 |
used to enter passwords without the password being |
| |
|
128 |
echoed). |
| |
|
129 |
|
| |
|
130 |
|
| |
|
131 |
If the LINEMODE option is enabled, or if the |
| |
|
132 |
localchars tog- gle is TRUE (the default for ``old |
| |
|
133 |
line by line``; see below), the user's quit, intr, and flush |
| |
|
134 |
characters are trapped locally, and sent as |
| |
|
135 |
TELNET protocol sequences to the remote side. |
| |
|
136 |
If LINEMODE has ever been enabled, then the user's |
| |
|
137 |
susp and eof are also sent as TELNET protocol |
| |
|
138 |
sequences, and quit is sent as a TELNET ABORT |
| |
|
139 |
instead of BREAK There are options (see toggle |
| |
|
140 |
autoflush and toggle autosynch below) which cause this |
| |
|
141 |
action to flush subsequent output to the terminal (until the |
| |
|
142 |
remote host acknowledges the TELNET sequence) |
| |
|
143 |
and flush previous terminal input (in the case of quit and |
| |
|
144 |
intr). |
| |
|
145 |
|
| |
|
146 |
|
| |
|
147 |
Commands: |
| |
|
148 |
|
| |
|
149 |
|
| |
|
150 |
The following telnet commands are available. Unique prefixes |
| |
|
151 |
are understood as abbreviations. |
| |
|
152 |
|
| |
|
153 |
|
| |
|
154 |
auth argument ... |
| |
|
155 |
The auth command controls the TELNET AUTHENTICATE |
| |
|
156 |
protocol option. If telnet was compiled without |
| |
|
157 |
authentication, the auth command will not be sup- ported. |
| |
|
158 |
Valid arguments are as follows: |
| |
|
159 |
|
| |
|
160 |
|
| |
|
161 |
disable type |
| |
|
162 |
Disable the specified type of authen- tication. To obtain a |
| |
|
163 |
list of avail- able types, use the auth disable ? |
| |
|
164 |
command. |
| |
|
165 |
|
| |
|
166 |
|
| |
|
167 |
enable type |
| |
|
168 |
Enable the specified type of authen- tication. To obtain a |
| |
|
169 |
list of avail- able types, use the auth enable ? |
| |
|
170 |
command. |
| |
|
171 |
|
| |
|
172 |
|
| |
|
173 |
status |
| |
|
174 |
List the current status of the vari- ous types of |
| |
|
175 |
authentication. |
| |
|
176 |
|
| |
|
177 |
|
| |
|
178 |
Note that the current version of telnet does not support |
| |
|
179 |
authentication. |
| |
|
180 |
|
| |
|
181 |
|
| |
|
182 |
close |
| |
|
183 |
Close the connection to the remote host, if any, and return |
| |
|
184 |
to command mode. |
| |
|
185 |
|
| |
|
186 |
|
| |
|
187 |
display argument ... |
| |
|
188 |
Display all, or some, of the set and toggle values (see |
| |
|
189 |
below). |
| |
|
190 |
|
| |
|
191 |
|
| |
|
192 |
encrypt argument ... |
| |
|
193 |
The encrypt command controls the TELNET ENCRYPT |
| |
|
194 |
protocol option. If telnet was compiled without encryption, |
| |
|
195 |
the encrypt command will not be sup- ported. |
| |
|
196 |
|
| |
|
197 |
|
| |
|
198 |
Valid arguments are as follows: |
| |
|
199 |
|
| |
|
200 |
|
| |
|
201 |
disable type [[input|output] |
| |
|
202 |
Disable the specified type of encryp- tion. If you do not |
| |
|
203 |
specify input or output, encryption of both is dis- abled. |
| |
|
204 |
To obtain a list of available types, use ``encrypt disable |
| |
|
205 |
?''. |
| |
|
206 |
|
| |
|
207 |
|
| |
|
208 |
enable type [[input|output] |
| |
|
209 |
Enable the specified type of encryp- tion. If you do not |
| |
|
210 |
specify input or output, encryption of both is enabled. To |
| |
|
211 |
obtain a list of avail- able types, use ``encrypt enable |
| |
|
212 |
?''. |
| |
|
213 |
|
| |
|
214 |
|
| |
|
215 |
input |
| |
|
216 |
This is the same as ``encrypt start input''. |
| |
|
217 |
|
| |
|
218 |
|
| |
|
219 |
-input |
| |
|
220 |
This is the same as ``encrypt stop input''. |
| |
|
221 |
|
| |
|
222 |
|
| |
|
223 |
output |
| |
|
224 |
This is the same as ``encrypt start output''. |
| |
|
225 |
|
| |
|
226 |
|
| |
|
227 |
-output |
| |
|
228 |
This is the same as ``encrypt stop output''. |
| |
|
229 |
|
| |
|
230 |
|
| |
|
231 |
start [[input|output] |
| |
|
232 |
Attempt to begin encrypting. If you do not specify input or |
| |
|
233 |
output, encryption of both input and output is |
| |
|
234 |
started. |
| |
|
235 |
|
| |
|
236 |
|
| |
|
237 |
status |
| |
|
238 |
Display the current status of the encryption |
| |
|
239 |
module. |
| |
|
240 |
|
| |
|
241 |
|
| |
|
242 |
stop [[input|output] |
| |
|
243 |
Stop encrypting. If you do not spec- ify input or output, |
| |
|
244 |
encryption of both is stopped. |
| |
|
245 |
|
| |
|
246 |
|
| |
|
247 |
type type |
| |
|
248 |
Sets the default type of encryption to be used with later |
| |
|
249 |
``encrypt start'' or ``encrypt stop'' commands. |
| |
|
250 |
|
| |
|
251 |
|
| |
|
252 |
Note that the current version of telnet does not support |
| |
|
253 |
encryption. |
| |
|
254 |
|
| |
|
255 |
|
| |
|
256 |
environ arguments... |
| |
|
257 |
The environ command is used to propagate environ- ment |
| |
|
258 |
variables across the telnet link using the TELNET |
| |
|
259 |
ENVIRON protocol option. All variables exported from |
| |
|
260 |
the shell are defined, but only the DISPLAY and |
| |
|
261 |
PRINTER variables are marked to be sent by default. |
| |
|
262 |
The USER variable is marked to be sent if the -a or |
| |
|
263 |
-l command-line options were used. |
| |
|
264 |
|
| |
|
265 |
|
| |
|
266 |
Valid arguments for the environ command are: |
| |
|
267 |
|
| |
|
268 |
|
| |
|
269 |
define variable value |
| |
|
270 |
Define the variable variable to have a value of value. Any |
| |
|
271 |
variables defined by this command are automatically marked |
| |
|
272 |
for propagation (``exported''). The value may be enclosed in |
| |
|
273 |
single or double quotes so that tabs and spaces may be |
| |
|
274 |
included. |
| |
|
275 |
|
| |
|
276 |
|
| |
|
277 |
undefine variable |
| |
|
278 |
Remove any existing definition of variable. |
| |
|
279 |
|
| |
|
280 |
|
| |
|
281 |
export variable |
| |
|
282 |
Mark the specified variable for propa- gation to the remote |
| |
|
283 |
host. |
| |
|
284 |
|
| |
|
285 |
|
| |
|
286 |
unexport variable |
| |
|
287 |
Do not mark the specified variable for propagation to the |
| |
|
288 |
remote host. The remote host may still ask explicitly for |
| |
|
289 |
variables that are not exported. |
| |
|
290 |
|
| |
|
291 |
|
| |
|
292 |
list |
| |
|
293 |
List the current set of environment variables. Those marked |
| |
|
294 |
with a will be propagated to the remote host. The remote |
| |
|
295 |
host may still ask explicitly for the rest. |
| |
|
296 |
|
| |
|
297 |
|
| |
|
298 |
? |
| |
|
299 |
Prints out help information for the environ |
| |
|
300 |
command. |
| |
|
301 |
|
| |
|
302 |
|
| |
|
303 |
logout |
| |
|
304 |
Send the TELNET LOGOUT protocol option to the |
| |
|
305 |
remote host. This command is similar to a close command. If |
| |
|
306 |
the remote host does not support the LOGOUT option, |
| |
|
307 |
nothing happens. But if it does, this command should cause |
| |
|
308 |
it to close the connec- tion. If the remote side also |
| |
|
309 |
supports the con- cept of suspending a user's session for |
| |
|
310 |
later reattachment, the logout command indicates that the |
| |
|
311 |
session should be terminated immediately. |
| |
|
312 |
|
| |
|
313 |
|
| |
|
314 |
mode type |
| |
|
315 |
Type is one of several options, depending on the state of |
| |
|
316 |
the session. Telnet asks the remote host to |
| |
|
317 |
go into the requested mode. If the remote host says it can, |
| |
|
318 |
that mode takes effect. |
| |
|
319 |
|
| |
|
320 |
|
| |
|
321 |
character |
| |
|
322 |
Disable the TELNET LINEMODE option, or, if the |
| |
|
323 |
remote side does not understand the LINEMODE |
| |
|
324 |
option, then enter ``character at a time`` |
| |
|
325 |
mode. |
| |
|
326 |
|
| |
|
327 |
|
| |
|
328 |
line |
| |
|
329 |
Enable the TELNET LINEMODE option, or, if the |
| |
|
330 |
remote side does not understand the LINEMODE |
| |
|
331 |
option, then attempt to enter ``old-line-by-line`` |
| |
|
332 |
mode. |
| |
|
333 |
|
| |
|
334 |
|
| |
|
335 |
isig (-isig) |
| |
|
336 |
Attempt to enable (disable) the TRAPSIG mode of the |
| |
|
337 |
LINEMODE option. This requires that the |
| |
|
338 |
LINEMODE option be enabled. |
| |
|
339 |
|
| |
|
340 |
|
| |
|
341 |
edit (-edit) |
| |
|
342 |
Attempt to enable (disable) the EDIT mode of the |
| |
|
343 |
LINEMODE option. This requires that the |
| |
|
344 |
LINEMODE option be enabled. |
| |
|
345 |
|
| |
|
346 |
|
| |
|
347 |
softtabs (-softtabs) |
| |
|
348 |
Attempt to enable (disable) the SOFT_TAB mode of |
| |
|
349 |
the LINEMODE option. This requires that the |
| |
|
350 |
LINEMODE option be enabled. |
| |
|
351 |
|
| |
|
352 |
|
| |
|
353 |
litecho (-litecho) |
| |
|
354 |
Attempt to enable (disable) the LIT_ECHO mode of |
| |
|
355 |
the LINEMODE option. This requires that the |
| |
|
356 |
LINEMODE option be enabled. |
| |
|
357 |
|
| |
|
358 |
|
| |
|
359 |
? |
| |
|
360 |
Prints out help information for the mode |
| |
|
361 |
command. |
| |
|
362 |
|
| |
|
363 |
|
| |
|
364 |
open host |
| |
|
365 |
[[ |
| |
|
366 |
[[-l] user |
| |
|
367 |
][[ |
| |
|
368 |
- port] |
| |
|
369 |
Open a connection to the named host. If no port number is |
| |
|
370 |
specified, telnet will attempt to con- tact a |
| |
|
371 |
telnet daemon at the standard port (23). The |
| |
|
372 |
host specification may be a host name or IP address. The -l |
| |
|
373 |
option may be used to specify a user name to be passed to |
| |
|
374 |
the remote system, like the -l command-line |
| |
|
375 |
option. |
| |
|
376 |
|
| |
|
377 |
|
| |
|
378 |
When connecting to ports other than the telnet port, telnet |
| |
|
379 |
does not attempt telnet protocol |
| |
|
380 |
negotiations. This makes it possible to connect to services |
| |
|
381 |
that do not support the telnet protocol |
| |
|
382 |
without making a mess. Protocol negotiation can be forced by |
| |
|
383 |
placing a dash before the port number. |
| |
|
384 |
|
| |
|
385 |
|
| |
|
386 |
After establishing a connection, any commands associated |
| |
|
387 |
with the remote host in /etc/telnetrc and the |
| |
|
388 |
user's .telnetrc file are executed, in that |
| |
|
389 |
order. |
| |
|
390 |
|
| |
|
391 |
|
| |
|
392 |
The format of the telnetrc files is as follows: Lines |
| |
|
393 |
beginning with a #, and blank lines, are ignored. The rest |
| |
|
394 |
of the file should consist of hostnames and sequences of |
| |
|
395 |
telnet commands to use with that host. Commands should be |
| |
|
396 |
one per line, indented by whitespace; lines beginning |
| |
|
397 |
without whitespace are interpreted as hostnames. Lines |
| |
|
398 |
beginning with the special hostname DEFAULT will |
| |
|
399 |
apply to all hosts. Upon connecting to a particu- lar host, |
| |
|
400 |
the commands associated with that host are |
| |
|
401 |
executed. |
| |
|
402 |
|
| |
|
403 |
|
| |
|
404 |
quit |
| |
|
405 |
Close any open session and exit telnet. An end of file |
| |
|
406 |
condition on input, when in command mode, will trigger this |
| |
|
407 |
operation as well. |
| |
|
408 |
|
| |
|
409 |
|
| |
|
410 |
send arguments |
| |
|
411 |
Send one or more special telnet protocol |
| |
|
412 |
character sequences to the remote host. The following are |
| |
|
413 |
the codes which may be specified (more than one may be used |
| |
|
414 |
in one command): |
| |
|
415 |
|
| |
|
416 |
|
| |
|
417 |
abort |
| |
|
418 |
Sends the TELNET ABORT (Abort Processes) |
| |
|
419 |
sequence. |
| |
|
420 |
|
| |
|
421 |
|
| |
|
422 |
ao |
| |
|
423 |
Sends the TELNET AO (Abort Output) sequence, which |
| |
|
424 |
should cause the remote system to flush all output |
| |
|
425 |
''from'' the remote system ''to'' the user's |
| |
|
426 |
terminal. |
| |
|
427 |
|
| |
|
428 |
|
| |
|
429 |
ayt |
| |
|
430 |
Sends the TELNET AYT (Are You There?) sequence, to |
| |
|
431 |
which the remote system may or may not choose to |
| |
|
432 |
respond. |
| |
|
433 |
|
| |
|
434 |
|
| |
|
435 |
brk |
| |
|
436 |
Sends the TELNET BRK (Break) sequence, which may |
| |
|
437 |
have significance to the remote system. |
| |
|
438 |
|
| |
|
439 |
|
| |
|
440 |
ec |
| |
|
441 |
Sends the TELNET EC (Erase Character) sequence, |
| |
|
442 |
which should cause the remote system to erase the last |
| |
|
443 |
character entered. |
| |
|
444 |
|
| |
|
445 |
|
| |
|
446 |
el |
| |
|
447 |
Sends the TELNET EL (Erase Line) sequence, which |
| |
|
448 |
should cause the remote system to erase the line currently |
| |
|
449 |
being entered. |
| |
|
450 |
|
| |
|
451 |
|
| |
|
452 |
eof |
| |
|
453 |
Sends the TELNET EOF (End Of File) |
| |
|
454 |
sequence. |
| |
|
455 |
|
| |
|
456 |
|
| |
|
457 |
eor |
| |
|
458 |
Sends the TELNET EOR (End of Record) |
| |
|
459 |
sequence. |
| |
|
460 |
|
| |
|
461 |
|
| |
|
462 |
escape |
| |
|
463 |
Sends the current telnet escape character. |
| |
|
464 |
|
| |
|
465 |
|
| |
|
466 |
ga |
| |
|
467 |
Sends the TELNET GA (Go Ahead) sequence, which |
| |
|
468 |
likely has no significance to the remote |
| |
|
469 |
system. |
| |
|
470 |
|
| |
|
471 |
|
| |
|
472 |
getstatus |
| |
|
473 |
If the remote side supports the TELNET STATUS |
| |
|
474 |
command, getstatus will send the subnegotiation to request |
| |
|
475 |
that the server send its current option status. |
| |
|
476 |
|
| |
|
477 |
|
| |
|
478 |
ip |
| |
|
479 |
Sends the TELNET IP (Interrupt Process) sequence, |
| |
|
480 |
which should cause the remote system to abort the currently |
| |
|
481 |
running pro- cess. |
| |
|
482 |
|
| |
|
483 |
|
| |
|
484 |
nop |
| |
|
485 |
Sends the TELNET NOP (No Operation) |
| |
|
486 |
sequence. |
| |
|
487 |
|
| |
|
488 |
|
| |
|
489 |
susp |
| |
|
490 |
Sends the TELNET SUSP (Suspend Process) |
| |
|
491 |
sequence. |
| |
|
492 |
|
| |
|
493 |
|
| |
|
494 |
synch |
| |
|
495 |
Sends the TELNET SYNCH sequence. This sequence |
| |
|
496 |
causes the remote system to dis- card all previously typed |
| |
|
497 |
(but not yet read) input. This sequence is sent as |
| |
|
498 |
TCP urgent data (and may not work if the |
| |
|
499 |
remote system is a 4.2 BSD system -- if it |
| |
|
500 |
doesn't work, a lower case ``r'' may be echoed on the |
| |
|
501 |
terminal). |
| |
|
502 |
|
| |
|
503 |
|
| |
|
504 |
do cmd |
| |
|
505 |
|
| |
|
506 |
|
| |
|
507 |
dont cmd |
| |
|
508 |
|
| |
|
509 |
|
| |
|
510 |
will cmd |
| |
|
511 |
|
| |
|
512 |
|
| |
|
513 |
wont cmd |
| |
|
514 |
Sends the TELNET DO cmd sequence. cmd can be either |
| |
|
515 |
a decimal number between 0 and 255, or a symbolic name for a |
| |
|
516 |
specific TELNET command. cmd can also be either |
| |
|
517 |
help or ? to print out help information, including a list of |
| |
|
518 |
known symbolic names. |
| |
|
519 |
|
| |
|
520 |
|
| |
|
521 |
? |
| |
|
522 |
Prints out help information for the send |
| |
|
523 |
command. |
| |
|
524 |
|
| |
|
525 |
|
| |
|
526 |
set argument value |
| |
|
527 |
|
| |
|
528 |
|
| |
|
529 |
unset argument value |
| |
|
530 |
The set command will set any one of a number of telnet |
| |
|
531 |
variables to a specific value or to TRUE. The |
| |
|
532 |
special value off turns off the function asso- ciated with |
| |
|
533 |
the variable. This is equivalent to using the unset command. |
| |
|
534 |
The unset command will disable or set to FALSE any |
| |
|
535 |
of the specified vari- ables. The values of variables may be |
| |
|
536 |
interro- gated with the display command. The variables which |
| |
|
537 |
may be set or unset, but not toggled, are listed here. In |
| |
|
538 |
addition, any of the variables for the toggle command may be |
| |
|
539 |
explicitly set or unset. |
| |
|
540 |
|
| |
|
541 |
|
| |
|
542 |
ayt |
| |
|
543 |
If telnet is in localchars mode, or |
| |
|
544 |
LINEMODE is enabled, and the status charac- ter is |
| |
|
545 |
typed, a TELNET AYT sequence is sent to the remote |
| |
|
546 |
host. The initial value for the |
| |
|
547 |
|
| |
|
548 |
|
| |
|
549 |
echo |
| |
|
550 |
This is the value (initially ``^E'') which, when in ``line |
| |
|
551 |
by line'' mode, toggles between doing local echoing of |
| |
|
552 |
entered characters (for normal processing), and suppressing |
| |
|
553 |
echoing of entered characters (for entering, say, a |
| |
|
554 |
password). |
| |
|
555 |
|
| |
|
556 |
|
| |
|
557 |
eof |
| |
|
558 |
If telnet is operating in LINEMODE or ``old line by |
| |
|
559 |
line'' mode, entering this charac- ter as the first |
| |
|
560 |
character on a line will cause this character to be sent to |
| |
|
561 |
the remote system. The initial value of the eof character is |
| |
|
562 |
taken to be the terminal's eof character. |
| |
|
563 |
|
| |
|
564 |
|
| |
|
565 |
erase |
| |
|
566 |
If telnet is in localchars mode (see toggle localchars |
| |
|
567 |
below), __and__ if telnet is operat- ing in ``character |
| |
|
568 |
at a time'' mode, then when this character is typed, a |
| |
|
569 |
TELNET EC sequence (see send ec above) is sent to |
| |
|
570 |
the remote system. The initial value for the erase character |
| |
|
571 |
is taken to be the termi- nal's erase |
| |
|
572 |
character. |
| |
|
573 |
|
| |
|
574 |
|
| |
|
575 |
escape |
| |
|
576 |
This is the telnet escape character (ini- tially ``^[['') |
| |
|
577 |
which causes entry into telnet command mode (when connected |
| |
|
578 |
to a remote system). |
| |
|
579 |
|
| |
|
580 |
|
| |
|
581 |
flushoutput |
| |
|
582 |
If telnet is in localchars mode (see toggle localchars |
| |
|
583 |
below) and the flushoutput char- acter is typed, a |
| |
|
584 |
TELNET AO sequence (see send ao above) is sent to |
| |
|
585 |
the remote host. The initial value for the flush character |
| |
|
586 |
is taken to be the terminal's flush charac- |
| |
|
587 |
ter. |
| |
|
588 |
|
| |
|
589 |
|
| |
|
590 |
forw1 |
| |
|
591 |
|
| |
|
592 |
|
| |
|
593 |
forw2 |
| |
|
594 |
If TELNET is operating in LINEMODE, |
| |
|
595 |
these are the characters that, when typed, cause partial |
| |
|
596 |
lines to be forwarded to the remote system. The initial |
| |
|
597 |
value for the forward- ing characters are taken from the |
| |
|
598 |
termi- nal's eol and eol2 characters. |
| |
|
599 |
|
| |
|
600 |
|
| |
|
601 |
interrupt |
| |
|
602 |
If telnet is in localchars mode (see toggle localchars |
| |
|
603 |
below) and the interrupt charac- ter is typed, a TELNET |
| |
|
604 |
IP sequence (see send ip above) is sent to the remote |
| |
|
605 |
host. The initial value for the interrupt charac- ter is |
| |
|
606 |
taken to be the terminal's intr character. |
| |
|
607 |
|
| |
|
608 |
|
| |
|
609 |
kill |
| |
|
610 |
If telnet is in localchars mode (see toggle localchars |
| |
|
611 |
below), and if telnet is operat- ing in ``character at a |
| |
|
612 |
time'' mode, then when this character is typed, a TELNET |
| |
|
613 |
EL sequence (see send el above) is sent to the remote |
| |
|
614 |
system. The initial value for the kill character is taken to |
| |
|
615 |
be the termi- nal's kill character. |
| |
|
616 |
|
| |
|
617 |
|
| |
|
618 |
lnext |
| |
|
619 |
If telnet is operating in LINEMODE or ``old line by |
| |
|
620 |
line`` mode, then this character is taken to be the |
| |
|
621 |
terminal's lnext character. The initial value for the lnext |
| |
|
622 |
character is taken to be the terminal's lnext charac- |
| |
|
623 |
ter. |
| |
|
624 |
|
| |
|
625 |
|
| |
|
626 |
quit |
| |
|
627 |
If telnet is in localchars mode (see toggle localchars |
| |
|
628 |
below) and the quit character is typed, a TELNET |
| |
|
629 |
BRK sequence (see send brk above) is sent to the remote |
| |
|
630 |
host. The initial value for the quit character is taken to |
| |
|
631 |
be the terminal's quit character. |
| |
|
632 |
|
| |
|
633 |
|
| |
|
634 |
reprint |
| |
|
635 |
If telnet is operating in LINEMODE or ``old line by |
| |
|
636 |
line`` mode, then this character is taken to be the |
| |
|
637 |
terminal's reprint charac- ter. The initial value for the |
| |
|
638 |
reprint character is taken to be the terminal's reprint |
| |
|
639 |
character. |
| |
|
640 |
|
| |
|
641 |
|
| |
|
642 |
rlogin |
| |
|
643 |
This is the rlogin mode escape character. Setting it enables |
| |
|
644 |
rlogin mode, as with the r command-line option |
| |
|
645 |
(q.v.) |
| |
|
646 |
|
| |
|
647 |
|
| |
|
648 |
start |
| |
|
649 |
If the TELNET TOGGLE-FLOW-CONTROL option has been |
| |
|
650 |
enabled, then this character is taken to be the terminal's |
| |
|
651 |
start character. The initial value for the kill character is |
| |
|
652 |
taken to be the terminal's start character. |
| |
|
653 |
|
| |
|
654 |
|
| |
|
655 |
stop |
| |
|
656 |
If the TELNET TOGGLE-FLOW-CONTROL option has been |
| |
|
657 |
enabled, then this character is taken to be the terminal's |
| |
|
658 |
stop character. The initial value for the kill character is |
| |
|
659 |
taken to be the terminal's stop character. |
| |
|
660 |
|
| |
|
661 |
|
| |
|
662 |
susp |
| |
|
663 |
If telnet is in localchars mode, or LINEMODE is |
| |
|
664 |
enabled, and the suspend char- acter is typed, a TELNET |
| |
|
665 |
SUSP sequence (see send susp above) is sent to the |
| |
|
666 |
remote host. The initial value for the suspend character is |
| |
|
667 |
taken to be the terminal's suspend character. |
| |
|
668 |
|
| |
|
669 |
|
| |
|
670 |
tracefile |
| |
|
671 |
This is the file to which the output, caused by netdata or |
| |
|
672 |
option tracing being TRUE, will be written. If it |
| |
|
673 |
is set to ``-'', then tracing information will be written to |
| |
|
674 |
standard output (the default). |
| |
|
675 |
|
| |
|
676 |
|
| |
|
677 |
worderase |
| |
|
678 |
If telnet is operating in LINEMODE or ``old line by |
| |
|
679 |
line`` mode, then this character is taken to be the |
| |
|
680 |
terminal's worderase char- acter. The initial value for the |
| |
|
681 |
worderase character is taken to be the terminal's worderase |
| |
|
682 |
character. |
| |
|
683 |
|
| |
|
684 |
|
| |
|
685 |
? |
| |
|
686 |
Displays the legal set (unset) commands. |
| |
|
687 |
|
| |
|
688 |
|
| |
|
689 |
slc state |
| |
|
690 |
The slc command (Set Local Characters) is used to set or |
| |
|
691 |
change the state of the the special charac- ters when the |
| |
|
692 |
TELNET LINEMODE option has been enabled. Special |
| |
|
693 |
characters are characters that get mapped to |
| |
|
694 |
TELNET commands sequences (like ip or quit) |
| |
|
695 |
or line editing characters (like erase and kill). By |
| |
|
696 |
default, the local special charac- ters are |
| |
|
697 |
exported. |
| |
|
698 |
|
| |
|
699 |
|
| |
|
700 |
check |
| |
|
701 |
Verify the current settings for the current special |
| |
|
702 |
characters. The remote side is requested to send all the |
| |
|
703 |
cur- rent special character settings, and if there are any |
| |
|
704 |
discrepancies with the local side, the local side will |
| |
|
705 |
switch to the remote value. |
| |
|
706 |
|
| |
|
707 |
|
| |
|
708 |
export |
| |
|
709 |
Switch to the local defaults for the special characters. The |
| |
|
710 |
local default characters are those of the local ter- minal |
| |
|
711 |
at the time when telnet was started. |
| |
|
712 |
|
| |
|
713 |
|
| |
|
714 |
import |
| |
|
715 |
Switch to the remote defaults for the special characters. |
| |
|
716 |
The remote default characters are those of the remote sys- |
| |
|
717 |
tem at the time when the TELNET connec- tion |
| |
|
718 |
was established. |
| |
|
719 |
|
| |
|
720 |
|
| |
|
721 |
? |
| |
|
722 |
Prints out help information for the slc |
| |
|
723 |
command. |
| |
|
724 |
|
| |
|
725 |
|
| |
|
726 |
status |
| |
|
727 |
Show the current status of telnet. This includes the name of |
| |
|
728 |
the remote host, if any, as well as the current |
| |
|
729 |
mode. |
| |
|
730 |
|
| |
|
731 |
|
| |
|
732 |
toggle arguments ... |
| |
|
733 |
Toggle (between TRUE and FALSE) various |
| |
|
734 |
flags that control how telnet responds to events. These |
| |
|
735 |
flags may be set explicitly to TRUE or |
| |
|
736 |
FALSE using the set and unset commands. More than |
| |
|
737 |
one flag may be toggled at once. The state of these flags |
| |
|
738 |
may be examined with the display command. Valid flags |
| |
|
739 |
are: |
| |
|
740 |
|
| |
|
741 |
|
| |
|
742 |
authdebug |
| |
|
743 |
Turns on debugging for the authenti- cation code. This flag |
| |
|
744 |
only exists if authentication support is |
| |
|
745 |
enabled. |
| |
|
746 |
|
| |
|
747 |
|
| |
|
748 |
autoflush |
| |
|
749 |
If autoflush and localchars are both TRUE, then |
| |
|
750 |
when the ao, or quit char- acters are recognized (and trans- |
| |
|
751 |
formed into TELNET sequences; see set above |
| |
|
752 |
for details), telnet refuses to display any data on the |
| |
|
753 |
user's termi- nal until the remote system acknowl- edges |
| |
|
754 |
(via a TELNET TIMING MARK option) that it has |
| |
|
755 |
processed those TELNET sequences. The initial |
| |
|
756 |
value for this toggle is TRUE if the termi- nal |
| |
|
757 |
user had not done an |
| |
|
758 |
FALSE (see stty(1)). |
| |
|
759 |
|
| |
|
760 |
|
| |
|
761 |
autodecrypt |
| |
|
762 |
When the TELNET ENCRYPT option is negotiated, by |
| |
|
763 |
default the actual encryption (decryption) of the data |
| |
|
764 |
stream does not start automatically. The autoencrypt |
| |
|
765 |
(autodecrypt) command states that encryption of the output |
| |
|
766 |
(input) stream should be enabled as soon as |
| |
|
767 |
possible. |
| |
|
768 |
|
| |
|
769 |
|
| |
|
770 |
Note that this flag exists only if encryption support is |
| |
|
771 |
enabled. |
| |
|
772 |
|
| |
|
773 |
|
| |
|
774 |
autologin |
| |
|
775 |
If the remote side supports the TELNET |
| |
|
776 |
AUTHENTICATION option, telnet attempts |
| |
|
777 |
to use it to perform auto- matic authentication. If the |
| |
|
778 |
TELNET AUTHENTICATION option is not sup- ported, |
| |
|
779 |
the user's login name is propagated using the TELNET |
| |
|
780 |
ENVIRON option. Setting this flag is the same as |
| |
|
781 |
specifying the a option to the open command or on the |
| |
|
782 |
command line. |
| |
|
783 |
|
| |
|
784 |
|
| |
|
785 |
autosynch |
| |
|
786 |
If autosynch and localchars are both TRUE, then |
| |
|
787 |
when either the intr or quit characters is typed (see set |
| |
|
788 |
above for descriptions of the intr and quit characters), the |
| |
|
789 |
resulting telnet sequence sent is followed by |
| |
|
790 |
the TELNET SYNCH sequence. This pro- cedure should |
| |
|
791 |
cause the remote system to begin throwing away all |
| |
|
792 |
previously typed input until both of the |
| |
|
793 |
telnet sequences have been read and acted |
| |
|
794 |
upon. The initial value of this tog- gle is |
| |
|
795 |
FALSE. |
| |
|
796 |
|
| |
|
797 |
|
| |
|
798 |
binary |
| |
|
799 |
Enable or disable the TELNET BINARY option on both |
| |
|
800 |
input and output. |
| |
|
801 |
|
| |
|
802 |
|
| |
|
803 |
inbinary |
| |
|
804 |
Enable or disable the TELNET BINARY option on |
| |
|
805 |
input. |
| |
|
806 |
|
| |
|
807 |
|
| |
|
808 |
outbinary |
| |
|
809 |
Enable or disable the TELNET BINARY option on |
| |
|
810 |
output. |
| |
|
811 |
|
| |
|
812 |
|
| |
|
813 |
crlf |
| |
|
814 |
If this is TRUE, then carriage returns will be sent |
| |
|
815 |
as . If this is FALSE, |
| |
|
816 |
then carriage returns will be send as |
| |
|
817 |
. The ini- tial value for this |
| |
|
818 |
toggle is FALSE. |
| |
|
819 |
|
| |
|
820 |
|
| |
|
821 |
crmod |
| |
|
822 |
Toggle carriage return mode. When this mode is enabled, most |
| |
|
823 |
carriage return characters received from the remote host |
| |
|
824 |
will be mapped into a carriage return followed by a line |
| |
|
825 |
feed. This mode does not affect those characters typed by |
| |
|
826 |
the user, only those received from the remote host. This |
| |
|
827 |
mode is not very useful unless the remote host only sends |
| |
|
828 |
carriage return, but never line feed. The initial value for |
| |
|
829 |
this toggle is FALSE. |
| |
|
830 |
|
| |
|
831 |
|
| |
|
832 |
debug |
| |
|
833 |
Toggles socket level debugging (use- ful only to the super |
| |
|
834 |
user). The initial value for this toggle is |
| |
|
835 |
FALSE. |
| |
|
836 |
|
| |
|
837 |
|
| |
|
838 |
encdebug |
| |
|
839 |
Turns on debugging information for the encryption code. Note |
| |
|
840 |
that this flag only exists if encryption sup- port is |
| |
|
841 |
available. |
| |
|
842 |
|
| |
|
843 |
|
| |
|
844 |
localchars |
| |
|
845 |
If this is TRUE, then the flush, interrupt, quit, |
| |
|
846 |
erase, and kill characters (see set above) are recog- nized |
| |
|
847 |
locally, and transformed into (hopefully) appropriate |
| |
|
848 |
TELNET con- trol sequences (respectively ao, |
| |
|
849 |
ip, brk, ec, and el; see send above). The initial value for |
| |
|
850 |
this toggle is TRUE in ``old line by line'' mode, |
| |
|
851 |
and FALSE in ``character at a time'' mode. When the |
| |
|
852 |
LINEMODE option is enabled, the value of localchars |
| |
|
853 |
is ignored, and assumed to always be TRUE. If |
| |
|
854 |
LINEMODE has ever been enabled, then quit is sent |
| |
|
855 |
as abort, and eof and are sent as eof and susp, see send |
| |
|
856 |
above). |
| |
|
857 |
|
| |
|
858 |
|
| |
|
859 |
netdata |
| |
|
860 |
Toggles the display of all network data (in hexadecimal |
| |
|
861 |
format). The initial value for this toggle is |
| |
|
862 |
FALSE. |
| |
|
863 |
|
| |
|
864 |
|
| |
|
865 |
options |
| |
|
866 |
Toggles the display of some internal telnet protocol |
| |
|
867 |
processing (having to do with telnet |
| |
|
868 |
options). The initial value for this toggle is |
| |
|
869 |
FALSE. |
| |
|
870 |
|
| |
|
871 |
|
| |
|
872 |
prettydump |
| |
|
873 |
When the netdata toggle is enabled, if prettydump is enabled |
| |
|
874 |
the output from the netdata command will be for- matted in a |
| |
|
875 |
more user-readable for- mat. Spaces are put between each |
| |
|
876 |
character in the output, and the beginning of |
| |
|
877 |
telnet escape sequences are preceded by a '' |
| |
|
878 |
to aid in locat- ing them. |
| |
|
879 |
|
| |
|
880 |
|
| |
|
881 |
skiprc |
| |
|
882 |
When the skiprc toggle is TRUE, |
| |
|
883 |
telnet does not read the telnetrc files. The |
| |
|
884 |
initial value for this toggle is |
| |
|
885 |
FALSE. |
| |
|
886 |
|
| |
|
887 |
|
| |
|
888 |
termdata |
| |
|
889 |
Toggles the display of all terminal data (in hexadecimal |
| |
|
890 |
format). The initial value for this toggle is |
| |
|
891 |
FALSE. |
| |
|
892 |
|
| |
|
893 |
|
| |
|
894 |
verbose_encrypt |
| |
|
895 |
When the verbose_encrypt toggle is TRUE, |
| |
|
896 |
TELNET prints out a message each time |
| |
|
897 |
encryption is enabled or disabled. The initial value for |
| |
|
898 |
this toggle is FALSE. This flag only exists if |
| |
|
899 |
encryption support is available. |
| |
|
900 |
|
| |
|
901 |
|
| |
|
902 |
? |
| |
|
903 |
Displays the legal toggle commands. |
| |
|
904 |
|
| |
|
905 |
|
| |
|
906 |
z |
| |
|
907 |
Suspend telnet. This command only works when the user is |
| |
|
908 |
using the csh(1). |
| |
|
909 |
|
| |
|
910 |
|
| |
|
911 |
! [[command] |
| |
|
912 |
Execute a single command in a subshell on the local system. |
| |
|
913 |
If command is omitted, then an interactive subshell is |
| |
|
914 |
invoked. |
| |
|
915 |
|
| |
|
916 |
|
| |
|
917 |
? [[command] |
| |
|
918 |
Get help. With no arguments, telnet prints a help summary. |
| |
|
919 |
If a command is specified, telnet will print the help |
| |
|
920 |
information for just that command. |
| |
|
921 |
|
| |
|
922 |
|
| |
|
923 |
__ENVIRONMENT__ |
| |
|
924 |
|
| |
|
925 |
|
| |
|
926 |
Telnet uses at least the HOME, SHELL, |
| |
|
927 |
DISPLAY, and TERM environment variables. |
| |
|
928 |
Other environment variables may be propagated to the other |
| |
|
929 |
side via the TELNET ENVIRON option. |
| |
|
930 |
__FILES__ |
| |
|
931 |
/etc/telnetrc |
| |
|
932 |
|
| |
|
933 |
|
| |
|
934 |
global telnet startup values |
| |
|
935 |
~/.telnetrc |
| |
|
936 |
user customized telnet startup values |
| |
|
937 |
|
| |
|
938 |
|
| |
|
939 |
__HISTORY__ |
| |
|
940 |
|
| |
|
941 |
|
| |
|
942 |
The Telnet command appeared in 4.2 BSD |
| |
|
943 |
. |
| |
|
944 |
__NOTES__ |
| |
|
945 |
|
| |
|
946 |
|
| |
|
947 |
On some remote systems, echo has to be turned off manually when in ``old line by line'' mode. |
| |
|
948 |
|
| |
|
949 |
|
| |
|
950 |
In ``old line by line'' mode or LINEMODE the |
| |
|
951 |
terminal's eof character is only recognized (and sent to the |
| |
|
952 |
remote system) when it is the first character on a |
| |
|
953 |
line. |
| |
|
954 |
__BUGS__ |
| |
|
955 |
|
| |
|
956 |
|
| |
|
957 |
The source code is not comprehensible. |
| |
|
958 |
|
| |
|
959 |
|
| 2 |
perry |
960 |
Linux !NetKit (0.17) August 15, 1999 1 |
| 1 |
perry |
961 |
---- |