Using HP-UX Internet Services (February 2007)

2 Logging into a Host with rlogin
rlogin is used to log into a remote HP-UX or UNIX host from your local host. It allows
you to work on the remote host similar to executing commands on the remote host’s
console. For more information, type man 1 rlogin at the HP-UX prompt.
Using rlogin
If you have an account on a remote host, you can use rlogin to log into the remote
host. The following steps describe how to log into a remote host:
1. Before you log into a remote host with rlogin, ensure that your local terminal
configuration settings are correct for the type of remote communication you intend
to perform. See “Checking Your Local Terminal Configuration” (page 11), for
more information.
2. Issue the following command to log into the remote host:
rlogin remote_hostname [-l remote_login_name]
Use the -l remote_login_name option if your login name on the remote host
is different from the login name for your local account.
3. Type the login name and password for your account on the remote host when you
are prompted for it. If you are using the Secure Internet Services version of rlogin
you will not be prompted for a password.
If certain keystrokes do not behave as expected, or if your display is not proper,
see “Checking Your Remote Terminal Configuration” (page 14) for corrective
measures.
4. To log out of the remote host, type exit or press CTRL-D at the command prompt.
rlogin disconnects from the remote host and returns to the HP-UX prompt on
your local host.
You need not specify a password while logging into a remote host if your local host
name is configured in the remote host’s /etc/hosts.equiv file, and if your login
name on the local host matches with your login name on the remote host.
You can configure a .rhosts file in your home directory on the remote host that allows
you to log in from the local host without supplying your remote login name and
password. See “Creating a $HOME/.rhosts File on a Remote Host” (page 17) for more
information.
Creating a $HOME/.rhosts File on a Remote Host
If you have an account on a remote host, you can set up the account so that you can
log into the remote host without specifying your remote login name and password.
Using rlogin 17