RLOGIN(1N) COMMAND REFERENCE RLOGIN(1N)
NAME
rlogin - remote login
SYNOPSIS
rlogin rhostname[ -ec ] [ -l username ] [ -8 ]
rhostname[ -ec ] [ -l username ] [ -8 ]
DESCRIPTION
Rlogin connects your terminal on the current local host
system to the remote host, rhostname.
Each host has a file /etc/hosts.equiv (see hosts.equiv(5n))
which contains a list of host names which are 'trusted'
enough that their users are allowed to run programs on the
local system (see rsh(1n)), copy files between the local and
remote sytems (see rcp(1n)), and login to the local system,
all without the use of passwords. Each user may also have a
private equivalence list in a file .rhosts in his or her
login directory. Each line in this file should contain a
rhost and a username separated by a space, giving additional
cases where logins without passwords are to be permitted.
If the originating user is not not listed in
/etc/hosts.equiv or the appropriate .rhosts file, then a
login and password will be prompted for on the remote
machine as in login(1). To avoid some security problems,
the .rhosts file must be owned by either the remote user or
root and may not be a symbolic link.
If there is no home directory for the user on the remote
system, rlogin will print Sorry, home directory required and
prompt for another login.
The second form of invoking rlogin, where you omit the
"rlogin" is possible if you place in some directory in your
search path a symbolic link (see ln(1)) linking rhostname to
/bin/rsh. This works because rsh can inspect its
invocation, and if it finds only a hostname, rsh assumes you
want to login in.
Your remote terminal type is the same as your local terminal
type (as given in your environment TERM variable). All
echoing takes place at the remote site, so that (except for
delays) the rlogin is transparent. Flow control, via
<CTRL-S> and <CTRL-Q> and flushing of input and output on
interrupts, are handled properly. A line of the form
<RETURN> <TILDE> <DOT> <RETURN>
disconnects from the remote host, where tilde (~) is the
escape character. A different escape character may be
specified by the -e option.
Printed 10/17/86 1
RLOGIN(1N) COMMAND REFERENCE RLOGIN(1N)
If you are a csh(1) user, you can suspend a remote login by
either
<RETURN> <TILDE> <CTRL-Z> <RETURN>
or
<RETURN> <TILDE> <CTRL-Y> <RETURN>
The former will stop all output until you bring the rlogin
job back into the foreground, the latter will not. However,
if you want the output from a suspended rlogin (or any other
suspended job, for that matter) not to be held up, you must
also turn off the stty(1) option tostop, i.e. stty -tostop.
Typically you would place that stty option in your .login.
Note that you can have a whole chain of rlogin's and
selectively suspend to any previous one. Suppose you logged
into machine able, and from there rlogin'd to baker, and
from there you rlogin'd to charlie. If you currently are on
charlie and want to suspend that job and return to able, you
could type
<RETURN> <TILDE> <CTRL-Z> <RETURN>.
You could also elect to suspend your charlie rlogin and
return to baker by typing
<RETURN> <TILDE> <TILDE> <CTRL-Z> <RETURN>.
Having said this it should be noted that it is much more
efficient to rlogin direct to a host, rather than set up a
chain of rlogins.
OPTIONS
-ec Set the escape character to be the c character. There
is no space separating this option flag and the argument
character.
-l username
Specify the login username to login as on the remote
host.
-8 Set rlogin to transparently handle 8-bit characters.
You lose flow control with this option (cntl-S and
cntrl-Q) but you gain the ability to transfer 8-bit
data. Typically this would be useful if your terminal
sends 8 bit graphical data in response to some command
from the host.
EXAMPLES
This example illustrates how to rlogin to another user's
account (in this case, sheryl's) on remote host engr1:
Printed 10/17/86 2
RLOGIN(1N) COMMAND REFERENCE RLOGIN(1N)
rlogin engr1 -l sheryl
If there was an entry in the .rhosts file in sheryl's home
directory for the user attempting the rlogin, then no
password would be required.
FILES
/usr/hosts/* For rhost version of the command.
RETURN VALUE
[3] Remote process has died, Connection is
closed.
[USAGE] Incorrect command line syntax. Execution
terminated.
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
[P_WARN] A system error occurred. Execution continues.
See intro(2) for more information on system
errors.
CAVEATS
More terminal characteristics should be propagated.
SEE ALSO
rsh(1n), hosts.equiv(5n), .rhosts(5n).
Printed 10/17/86 3
%%index%%
na:72,57;
sy:129,347;
de:476,2656;3276,1642;
op:4918,704;
ex:5622,237;6003,252;
fi:6255,129;
rv:6384,828;
ca:7212,108;
se:7320,161;
%%index%%000000000165