source: trunk/minix/man/man1/telnet.1@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 11.0 KB
Line 
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)telnet.1c 6.5 (Berkeley) 5/10/86
6.\"
7.TH TELNET 1 "May 10, 1986"
8.UC 5
9.SH NAME
10telnet \- user interface to the \s-1TELNET\s0 protocol
11.SH SYNOPSIS
12telnet [
13.I host
14[
15.I port
16] ]
17.SH DESCRIPTION
18.I Telnet
19is used to communicate with another host using the
20.B TELNET
21protocol.
22If
23.I telnet
24is invoked without arguments, it enters command mode,
25indicated by its prompt (\*(lqtelnet>\*(rq).
26In this mode, it accepts and executes the commands listed below.
27If it is invoked with arguments, it performs an
28.B open
29command (see below) with those arguments.
30.PP
31Once a connection has been opened,
32.I telnet
33enters an input mode.
34The input mode entered will be either \*(lqcharacter at a time\*(rq
35or \*(lqline by line\*(rq
36depending on what the remote system supports.
37.PP
38In \*(lqcharacter at a time\*(rq mode, most
39text typed is immediately sent to the remote host for processing.
40.PP
41In \*(lqline by line\*(rq mode, all text is echoed locally,
42and (normally) only completed lines are sent to the remote host.
43The \*(lqlocal echo character\*(rq (initially \*(lq^E\*(rq) may be used
44to turn off and on the local echo
45(this would mostly be used to enter passwords
46without the password being echoed).
47.PP
48In either mode, if the
49.I localchars
50toggle is TRUE (the default in line mode; see below),
51the user's
52.IR quit ,
53.IR intr ,
54and
55.I flush
56characters are trapped locally, and sent as
57.B TELNET
58protocol sequences to the remote side.
59There are options (see
60.B toggle
61.I autoflush
62and
63.B toggle
64.I autosynch
65below)
66which cause this action to flush subsequent output to the terminal
67(until the remote host acknowledges the
68.B TELNET
69sequence) and flush previous terminal input
70(in the case of
71.I quit
72and
73.IR intr ).
74.PP
75While connected to a remote host,
76.I telnet
77command mode may be entered by typing the
78.I telnet
79\*(lqescape character\*(rq (initially \*(lq^]\*(rq).
80When in command mode, the normal terminal editing conventions are available.
81.PP
82.B COMMANDS
83.PP
84The following commands are available.
85Only enough of each command to uniquely identify it need be typed
86(this is also true for arguments to the
87.BR mode ,
88.BR set ,
89.BR toggle ,
90and
91.B display
92commands).
93.PP
94.TP
95.B open \fIhost\fP \fR[\fP \fIport\fP \fR]\fP
96.br
97Open a connection to the named host.
98If no port number
99is specified,
100.I telnet
101will attempt to contact a
102.B TELNET
103server at the default port.
104The host specification may be either a host name (see
105.IR hosts (5))
106or an Internet address specified in the \*(lqdot notation\*(rq (see
107.IR inet (3N)).
108.TP
109.B close
110.br
111Close a
112.B TELNET
113session and return to command mode.
114.TP
115.B quit
116.br
117Close any open
118.B TELNET
119session and exit
120.IR telnet .
121An end of file (in command mode) will also close a session and exit.
122.TP
123.B z
124.br
125Suspend
126.IR telnet .
127This command only works when the user is using the
128.IR csh (1).
129.TP
130.B mode \fItype\fP
131.br
132.I Type
133is either
134.I line
135(for \*(lqline by line\*(rq mode)
136or
137.I character
138(for \*(lqcharacter at a time\*(rq mode).
139The remote host is asked for permission to go into the requested mode.
140If the remote host is capable of entering that mode, the requested
141mode will be entered.
142.TP
143.B status
144.br
145Show the current status of
146.IR telnet .
147This includes the peer one is connected to, as well
148as the current mode.
149.TP
150.B display \fR[\fP \fIargument...\fP \fR]\fP
151.br
152Displays all, or some, of the
153.B set
154and
155.B toggle
156values (see below).
157.TP
158.B ? \fR[\fP \fIcommand\fP \fR]\fP
159.br
160Get help. With no arguments,
161.I telnet
162prints a help summary.
163If a command is specified,
164.I telnet
165will print the help information for just that command.
166.TP
167.B send \fIarguments\fP
168.br
169Sends one or more special character sequences to the remote host.
170The following are the arguments which may be specified
171(more than one argument may be specified at a time):
172.RS
173.TP
174.I escape
175.br
176Sends the current
177.I telnet
178escape character (initially \*(lq^]\*(rq).
179.TP
180.I synch
181.br
182Sends the
183.B TELNET SYNCH
184sequence.
185This sequence causes the remote system to discard all previously typed
186(but not yet read) input.
187This sequence is sent as TCP urgent
188data (and may not work if the remote system is a 4.2 BSD system -- if
189it doesn't work, a lower case \*(lqr\*(rq may be echoed on the terminal).
190.TP
191.I brk
192.br
193Sends the
194.B TELNET BRK
195(Break) sequence, which may have significance to the remote
196system.
197.TP
198.I ip
199.br
200Sends the
201.B TELNET IP
202(Interrupt Process) sequence, which should cause the remote
203system to abort the currently running process.
204.TP
205.I ao
206.br
207Sends the
208.B TELNET AO
209(Abort Output) sequence, which should cause the remote system to flush
210all output
211.B from
212the remote system
213.B to
214the user's terminal.
215.TP
216.I ayt
217.br
218Sends the
219.B TELNET AYT
220(Are You There)
221sequence, to which the remote system may or may not choose to respond.
222.TP
223.I ec
224.br
225Sends the
226.B TELNET EC
227(Erase Character)
228sequence, which should cause the remote system to erase the last character
229entered.
230.TP
231.I el
232.br
233Sends the
234.B TELNET EL
235(Erase Line)
236sequence, which should cause the remote system to erase the line currently
237being entered.
238.TP
239.I ga
240.br
241Sends the
242.B TELNET GA
243(Go Ahead)
244sequence, which likely has no significance to the remote system.
245.TP
246.I nop
247.br
248Sends the
249.B TELNET NOP
250(No OPeration)
251sequence.
252.TP
253.I ?
254.br
255Prints out help information for the
256.B send
257command.
258.RE
259.TP
260.B set \fIargument value\fP
261.br
262Set any one of a number of
263.I telnet
264variables to a specific value.
265The special value \*(lqoff\*(rq turns off the function associated with
266the variable.
267The values of variables may be interrogated with the
268.B display
269command.
270The variables which may be specified are:
271.RS
272.TP
273.I echo
274.br
275This is the value (initially \*(lq^E\*(rq) which, when in
276\*(lqline by line\*(rq mode, toggles between doing local echoing
277of entered characters (for normal processing), and suppressing
278echoing of entered characters (for entering, say, a password).
279.TP
280.I escape
281.br
282This is the
283.I telnet
284escape character (initially \*(lq^[\*(rq) which causes entry
285into
286.I telnet
287command mode (when connected to a remote system).
288.TP
289.I interrupt
290.br
291If
292.I telnet
293is in
294.I localchars
295mode (see
296.B toggle
297.I localchars
298below)
299and the
300.I interrupt
301character is typed, a
302.B TELNET IP
303sequence (see
304.B send
305.I ip
306above)
307is sent to the remote host.
308The initial value for the interrupt character is taken to be
309the terminal's
310.B intr
311character.
312.TP
313.I quit
314.br
315If
316.I telnet
317is in
318.I localchars
319mode (see
320.B toggle
321.I localchars
322below)
323and the
324.I quit
325character is typed, a
326.B TELNET BRK
327sequence (see
328.B send
329.I brk
330above)
331is sent to the remote host.
332The initial value for the quit character is taken to be
333the terminal's
334.B quit
335character.
336.TP
337.I flushoutput
338.br
339If
340.I telnet
341is in
342.I localchars
343mode (see
344.B toggle
345.I localchars
346below)
347and the
348.I flushoutput
349character is typed, a
350.B TELNET AO
351sequence (see
352.B send
353.I ao
354above)
355is sent to the remote host.
356The initial value for the flush character is taken to be
357the terminal's
358.B flush
359character.
360.TP
361.I erase
362.br
363If
364.I telnet
365is in
366.I localchars
367mode (see
368.B toggle
369.I localchars
370below),
371.B and
372if
373.I telnet
374is operating in \*(lqcharacter at a time\*(rq mode, then when this
375character is typed, a
376.B TELNET EC
377sequence (see
378.B send
379.I ec
380above)
381is sent to the remote system.
382The initial value for the erase character is taken to be
383the terminal's
384.B erase
385character.
386.TP
387.I kill
388.br
389If
390.I telnet
391is in
392.I localchars
393mode (see
394.B toggle
395.I localchars
396below),
397.B and
398if
399.I telnet
400is operating in \*(lqcharacter at a time\*(rq mode, then when this
401character is typed, a
402.B TELNET EL
403sequence (see
404.B send
405.I el
406above)
407is sent to the remote system.
408The initial value for the kill character is taken to be
409the terminal's
410.B kill
411character.
412.TP
413.I eof
414.br
415If
416.I telnet
417is operating in \*(lqline by line\*(rq mode, entering this character
418as the first character on a line will cause this character to be
419sent to the remote system.
420The initial value of the eof character is taken to be the terminal's
421.B eof
422character.
423.RE
424.TP
425.B toggle \fIarguments...\fP
426.br
427Toggle (between
428TRUE
429and
430FALSE)
431various flags that control how
432.I telnet
433responds to events.
434More than one argument may be specified.
435The state of these flags may be interrogated with the
436.B display
437command.
438Valid arguments are:
439.RS
440.TP
441.I localchars
442.br
443If this is
444TRUE,
445then the
446.IR flush ,
447.IR interrupt ,
448.IR quit ,
449.IR erase ,
450and
451.I kill
452characters (see
453.B set
454above) are recognized locally, and transformed into (hopefully) appropriate
455.B TELNET
456control sequences
457(respectively
458.IR ao ,
459.IR ip ,
460.IR brk ,
461.IR ec ,
462and
463.IR el ;
464see
465.B send
466above).
467The initial value for this toggle is TRUE in \*(lqline by line\*(rq mode,
468and FALSE in \*(lqcharacter at a time\*(rq mode.
469.TP
470.I autoflush
471.br
472If
473.I autoflush
474and
475.I localchars
476are both
477TRUE,
478then when the
479.IR ao ,
480.IR intr ,
481or
482.I quit
483characters are recognized (and transformed into
484.B TELNET
485sequences; see
486.B set
487above for details),
488.I telnet
489refuses to display any data on the user's terminal
490until the remote system acknowledges (via a
491.B TELNET
492.I Timing Mark
493option)
494that it has processed those
495.B TELNET
496sequences.
497The initial value for this toggle is TRUE if the terminal user had not
498done an "stty noflsh", otherwise FALSE (see
499.IR stty(1)).
500.TP
501.I autosynch
502If
503.I autosynch
504and
505.I localchars
506are both
507TRUE,
508then when either the
509.I intr
510or
511.I quit
512characters is typed (see
513.B set
514above for descriptions of the
515.I intr
516and
517.I quit
518characters), the resulting
519.B TELNET
520sequence sent is followed by the
521.B TELNET SYNCH
522sequence.
523This procedure
524.B should
525cause the remote system to begin throwing away all previously
526typed input until both of the
527.B TELNET
528sequences have been read and acted upon.
529The initial value of this toggle is FALSE.
530.TP
531.I crmod
532.br
533Toggle carriage return mode.
534When this mode is enabled, most carriage return characters received from
535the remote host will be mapped into a carriage return followed by
536a line feed.
537This mode does not affect those characters typed by the user, only
538those received from the remote host.
539This mode is not very useful unless the remote host
540only sends carriage return, but never line feed.
541The initial value for this toggle is FALSE.
542.TP
543.I debug
544.br
545Toggles socket level debugging (useful only to the
546.IR super user ).
547The initial value for this toggle is FALSE.
548.TP
549.I options
550.br
551Toggles the display of some internal
552.I telnet
553protocol processing (having to do with
554.B TELNET
555options).
556The initial value for this toggle is FALSE.
557.TP
558.I netdata
559.br
560Toggles the display of all network data (in hexadecimal format).
561The initial value for this toggle is FALSE.
562.TP
563.I ?
564.br
565Displays the legal
566.B toggle
567commands.
568.RE
569.SH BUGS
570.PP
571There is no adequate way for dealing with flow control.
572.PP
573On some remote systems, echo has to be turned off manually when in
574\*(lqline by line\*(rq mode.
575.PP
576There is enough settable state to justify a
577.RI . telnetrc
578file.
579.PP
580No capability for a
581.RI . telnetrc
582file is provided.
583.PP
584In \*(lqline by line\*(rq mode, the terminal's
585.I eof
586character is only recognized (and sent to the remote system)
587when it is the first character on a line.
Note: See TracBrowser for help on using the repository browser.