HP-UX Remote Access Services Administrator's Guide

login stream tcp nowait root /usr/lbin/rlogind rlogind
In a secure environment, you must add the following entry to the
/etc/inetd.conf configuration file:
klogin stream tcp nowait root /usr/lbin/rlogind
rlogind -K
To start rlogind in IPv6 mode, add the following entry to the configuration
file/etc/inetd.conf:
In a non-secure environment, you must add the following entry:
login stream tcp6 nowait root /usr/lbin/rlogind rlogind
In a secure environment, you must add the following entry:
klogin stream tcp6 nowait root /usr/lbin/rlogind
rlogind -K
After you add the necessary entry to the /etc/inetd.conf file, recompile inetd
using the following command:
# /etc/inetd -c
Now, inetd invokes rlogind with the service as specified in the /etc/inetd.conf
file.
For detailed information on rlogind, type man 1M rlogind at the HP-UX prompt.
The remsh and rexec Commands
The remsh command enables you to connect to a remote host and execute commands.
The host name can be either the official name or an alias that the function
gethostbyname() is able to interpret. For more information, type man 3N
gethostent or man 4 host at the HP-UX prompt. remsh exits when the sockets
associated with the standard output (stdout) and standard error (stderr) are closed,
that is, remsh and the remote command terminate at the same time. For more
information, type man 1M remshd at the HP-UX prompt.
remsh performs the following functions:
Copies the standard input (stdin) from the local system to the remote command.
Copies stdout of the remote command to the local system’s stdout.
Copies stderr of the remote command to the local system’s stderr.
The syntax for remsh is as follows:
20 Remote Access Services Overview