Symantec logo

Enabling remsh

Remote shell functionality is enabled automatically after installing an HP-UX system.

Typically, the only requirement to enable remote installs is to modify the .rhosts file. There is a separate .rhosts file in the $HOME directory of each user that you must modify for each user who will remotely access the system using remsh. Each line of the .rhosts file must contain a fully qualified domain name or IP address for each remote system that has access to the local system. For example, if the root user must remotely access system1 from system2, add an entry for system2.companyname.com to the /.rhosts file on system1.

# echo "system2.companyname.com" >> $HOME/.rhosts

After completing an installation procedure, delete the .rhosts file from each user's $HOME directory to ensure security:

# rm -f $HOME/.rhosts

See the operating system documentation and the remsh(1M) manual page for more information on configuring remote shell.