 |
» |
|
|
|
If you have an account on a remote host, you can use rlogin to log into the remote host. Follow these steps: 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”. Issue the following command: 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. 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 the way you expect them
to, or if your display does not look right, see “Checking Your Remote
Terminal Configuration”. When you have finished your work on the remote system,
log out as you ordinarily do (for example, by typing exit or CTRL-D). rlogin logs you out of the remote host, disconnects from
the remote host and returns you to the HP-UX prompt on your local
host.
If the system administrator for the remote host has configured
your local host's name in the remote host's /etc/hosts.equiv file, and if your login name on the local host
matches your login name on the remote host, you do not have to supply
a password when you log in. 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”. 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 having
to supply your remote login name and password. Follow these steps: If you do not know where your home directory is, log into
the remote host and issue this command to find out: Create a file called .rhosts in your home directory on the remote host, if
it does not already exist, and add the following line to it: your_local_host's_name your_local_login_name
|
Issue the following command to make sure that your
remote .rhosts file is owned by you, the user: Issue the following command to protect your remote .rhosts file so only you can read it: Move to the parent directory of your home directory,
and issue the following command to protect your remote home directory
so that no one else can write to it: chmod 0755 your_home_directory
|
Type man 4 hosts.equiv for more information on the .rhosts file.  |  |  |  |  | CAUTION: A $HOME/.rhosts file creates a significant security risk. Because
of this, its functionality may be disabled by the system administrator
on the remote host. If it has been disabled, your $HOME/.rhosts file will not work even if it exists on your system. |  |  |  |  |
|