Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(1)

rcmd(1)

ln(1)

perror(3)

services(4)

.rhosts(4)

hosts.equiv(4)



  rlogin(1)                           CLIX                           rlogin(1)



  NAME

    rlogin - Logs in to a remote system

  SYNOPSIS

    rlogin rhost [-ec] [-l username]

    rhost [-ec] [-l username]

  FLAGS

    -ec           Specifies an escape character, c, other than a tilde (~).

    -l username   Specifies the remote username to be used in the login
                  procedure.  The default username is the username on the
                  local host.

  DESCRIPTION

    The rlogin command connects the terminal on the local host to the remote
    host rhost.  The command allows you to bypass the login prompt if one of
    the following is on the remote system:

    ⊕  an entry in the /etc/hosts.equiv file for the local host

    ⊕  an entry in the .rhosts file in the remote user's home directory for
       the local host and (optionally) the local username.

    If neither of these is on the remote system, the user is prompted for a
    password by the remote host.  The local username is used for the remote
    username if the -l username flag is not specified.

    If /etc/hosts.equiv exists, it contains a list of the fully qualified
    names (hostname plus domain name) of the remote hosts that share account
    names with the local host.  If the originating user is not equivalent to
    the remote user, you are prompted for a login and password on the remote
    host as with the login command.  You can also have a private equivalence
    list in a .rhosts file in the remote user's home directory.  Each line of
    this file contains the fully qualified name (host name plus domain name)
    of an rhost and a username separated by a space or tab.  Either the remote
    user or root must own the .rhosts file.

    Once connected to the remote host, the remote terminal type is the same as
    the local terminal type (as specified by the environment variable $TERM).
    All echoing occurs at the remote host, thus the rlogin is transparent
    (except for delays).  Flow control through <Ctrl-S> and <Ctrl-Q> is
    handled on the remote host.

    There are two ways to escape from the rlogin connection.  Both involve the
    use of the escape character (tilde (~) by default).  Once the rlogin



  2/94 - Intergraph Corporation                                              1






  rlogin(1)                           CLIX                           rlogin(1)



    session is established, to break the connection with the remote host and
    return to the local host's command prompt, type in one of the following:

    ⊕  Tilde followed by a dot (.) to abruptly disconnect the connection with
       the remote host.

    ⊕  Tilde <Ctrl-Z> to suspend the rlogin session temporarily.

    Both methods cause the local host's command prompt to appear.  If the
    rlogin session has been suspended, it may be resumed through job control
    by entering the following:

    fg %jobnumber

    The rhost command allows you to enter only the name of the remote host to
    be connected to rather than explicitly entering rlogin.  To use this
    command, you must link (see ln) /usr/bin/rlogin to /usr/bin/rhost, where
    rhost is the name of the remote host system.

  EXAMPLES

    1.  To connect to the remote host ps11, enter:

        rlogin ps11


    2.  To connect to the remote host ps12 specifying the escape character as
        @, enter:

        rlogin -e@ ps12


    3.  To connect to the remote host sys60 and login as user peggy, enter:

        rlogin sys60 -l peggy


    4.  If your rhost file is set up, to connect to sys30 and login as user
        susan, enter:

        sys30 -l susan


  FILES

    /etc/resolv.conf
           Domain Name System (DNS) client configuration file.  DNS is the
           preferred method for host address resolution.

    /etc/hosts
           Hostname database.



  2                                              Intergraph Corporation - 2/94






  rlogin(1)                           CLIX                           rlogin(1)



    .rhosts
           Remote user access list.

    /etc/hosts.equiv
           Host equivalency database.

    /etc/services
           Service name database.

  DIAGNOSTICS

    A usage message is displayed if an unknown flag is specified on the
    command line.

    rlogin: login/tcp: unknown service
           The /etc/services file on your system needs to be updated.

    Connection closed
           This message is displayed when you exit the rlogin command.

    Other error messages are related to system errors and are displayed with
    the perror() function.

  EXIT VALUES

    The rlogin command exits with a value of 0 on a normal exit.  If an error
    occurs, it exits with a nonzero value.

  RELATED INFORMATION

    Commands:  login(1), rcmd(1), ln(1)

    Functions:  perror(3)

    Files:  services(4), .rhosts(4), hosts.equiv(4)



















  2/94 - Intergraph Corporation                                              3




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026