Imported upstream version 1.5
[manpages-zh.git] / raw / man1 / rlogin.1
blob182736a253ff7972fd49ff13910bbaf015bb8d53
1 .\" Copyright (c) 1983, 1990 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     from: @(#)rlogin.1      6.19 (Berkeley) 7/27/91
33 .\"
34 .Dd August 15, 1999
35 .Dt RLOGIN 1
36 .Os "Linux NetKit (0.17)"
37 .Sh NAME
38 .Nm rlogin
39 .Nd remote login
40 .Sh SYNOPSIS
41 .Ar rlogin
42 .Op Fl 8EKLdx
43 .Op Fl e Ar char
44 .Op Fl l Ar username
45 .Ar host
46 .Sh DESCRIPTION
47 .Nm Rlogin
48 starts a terminal session on a remote host
49 .Ar host  .
50 .Pp
51 The standard Berkeley
52 .Pa rhosts
53 authorization mechanism is used.
54 The options are as follows:
55 .Bl -tag -width flag
56 .It Fl 8
57 The
58 .Fl 8
59 option allows an eight-bit input data path at all times; otherwise
60 parity bits are stripped except when the remote side's stop and start
61 characters are other than
62 ^S/^Q .
63 .It Fl E
64 The
65 .Fl E
66 option stops any character from being recognized as an escape character.
67 When used with the
68 .Fl 8
69 option, this provides a completely transparent connection.
70 .It Fl L
71 The
72 .Fl L
73 option allows the rlogin session to be run in ``litout'' (see
74 .Xr tty 4 )
75 mode.
76 .It Fl d
77 The
78 .Fl d
79 option turns on socket debugging (see
80 .Xr setsockopt 2 )
81 on the TCP sockets used for communication with the remote host.
82 .It Fl e
83 The
84 .Fl e
85 option allows user specification of the escape character, which is
86 ``~'' by default.
87 This specification may be as a literal character, or as an octal
88 value in the form \ennn.
89 .El
90 .Pp
91 A line of the form ``<escape char>.'' disconnects from the remote host.
92 Similarly, the line ``<escape char>^Z'' will suspend the
93 .Nm rlogin
94 session, and ``<escape char><delayed-suspend char>'' suspends the
95 send portion of the rlogin, but allows output from the remote system.
96 By default, the tilde (``~'') character is the escape character, and
97 normally control-Y (``^Y'') is the delayed-suspend character.
98 .Pp
99 All echoing takes place at the remote site, so that (except for delays)
101 .Nm rlogin
102 is transparent.
103 Flow control via ^S/^Q and flushing of input and output on interrupts
104 are handled properly.
105 .Sh ENVIRONMENT
106 The following environment variable is utilized by
107 .Nm rlogin :
108 .Bl -tag -width TERM
109 .It Ev TERM
110 Determines the user's terminal type.
112 .Sh SEE ALSO
113 .Xr rsh 1 ,
114 .Sh HISTORY
116 .Nm rlogin
117 command appeared in
118 .Bx 4.2 .
119 .Sh BUGS
120 .Nm Rlogin
121 will be replaced by
122 .Xr telnet  1
123 in the near future.
125 More of the environment should be propagated.