rlogin(1N) rlogin(1N)NAME rlogin - logs in to a remote system SYNOPSIS rlogin rhost [-8] [-ec] [-l username] ARGUMENTS -8 Allows an eight-bit data path; otherwise parity bits are stripped. -ec Defines the following character, c, as the escape character. No space separates the option and the argument character. -l username Allows you to log into the remote system as a specified user, username. DESCRIPTION rlogin connects your terminal on the current local host system lhost to the remote host system rhost via a local network. On the remote side, you get whatever shell is set up for that account. Each host has a file /etc/hosts.equiv which contains a list of rhosts with which it shares account names. (The hosts names must be the standard names as described in remsh(1N).) When you rlogin as the same user on an equivalent host, you don't need to give a password. Each user may also have a private equivalence list in a file .rhosts in his 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 equivalent to the remote user, then a login and password will be prompted for on the remote machine as in login(1). To avoid security problems, the .rhosts file must be owned by either the remote user or root. Note that, for security reasons, root is an exception to the above; a superuser on an equivalent host must still supply the password to login as root unless the root account has its own private equivalence list in a file .rhosts in the root directory. Note that a .rhosts file for a root account is not recommended where secure systems are required. 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 CONTROL-S and CONTROL-Q and flushing of input and output on interrupts are handled properly. January 1992 1
rlogin(1N) rlogin(1N)Tilde (~) is the default escape character. A line of the form ``~.'' (where ``~'' is the escape character), disconnects the current job from the remote host. The escape sequence ``~CONTROL-Z'' stops the rlogin process and returns control to the local machine where the rlogin was initiated. This applies only if the initiating shell allows job control (csh(1) or ksh(1)). If your terminal suspend character (see stty(1)) is not CONTROL-Z, substitute that character for CONTROL-Z where applicable. Another function of the escape character applies to nested rlogins. With multiple levels of rlogins, escapes can be sent to a specified level. When performing rlogins inside other rlogins, an escape (~CONTROL-Z) returns control to the original shell from which the first rlogin was initiated. However, control can be returned to other rlogin processes in the middle by varying the number of tildes. If you supply two tildes, the rlogin shell invoked by the first rlogin becomes active. If you supply three tildes, the rlogin shell invoked by the rlogin shell invoked by the first rlogin becomes active, and so on. For example, if you begin on machine A, then rlogin to machine B, then rlogin to machine C, ``~CONTROL-Z'' returns you to machine A; ``~~CONTROL-z'' returns you to machine B, etc. If you choose to redefine the escape character, make sure you remember which character you have chosen, especially when nesting your rlogins. The escape sequence ``XCONTROL- Z'' returns you to the first shell that invoked an rlogin with ``X'' as the escape character. ``XXCONTROL-Z'' returns you to the second. So, if you rlogin from A to B using ``X,'' rlogin from B to C using ``Y,'' and from C to D using ``X,'' you can get to C by typing ``XXCONTROL-Z''. The second form of this command requires some preparation before it will work. The system administrator must pave the way by creating a directory, usually /usr/hosts and executing the following command: ln /usr/bin/remsh rhost which links the remsh binaries to rhost. This works for both rlogin and remsh, since the remsh command without a command argument is the equivalent of the rlogin command. Note: You must then include /usr/hosts (or the directory chosen by your system administrator) in the search path specified in your .login or .profile in 2 January 1992
rlogin(1N) rlogin(1N)order for the second form of this command to work. LIMITATIONS More terminal characteristics should be propagated. FILES /usr/bin/rlogin Executable file /usr/hosts/* Directory for rhost version of the command SEE ALSO remsh(1N), stty(1) A/UX Networking Essentials January 1992 3