HP-MPI User's Guide (11th Edition)

Getting started
Getting started using HP-UX or Linux
Chapter 2 21
HP-MPI allows users to specify the remote execution tool to use when
HP-MPI needs to start processes on remote hosts. The tool specified must
have a call interface similar to that of the standard utilities: rsh, remsh
and ssh.
An alternate remote execution tool, such as ssh, can be used on HP-UX
by setting the environment variable MPI_REMSH to the name or full path
of the tool to use:
% export MPI_REMSH=ssh
% $MPI_ROOT/bin/mpirun <options> -f <appfile>
HP-MPI supports setting MPI_REMSH using the -e option to mpirun:
% $MPI_ROOT/bin/mpirun -e MPI_REMSH=ssh <options> -f \
<appfile>
HP-MPI also supports setting MPI_REMSH to a command which includes
additional arguments:
% $MPI_ROOT/bin/mpirun -e MPI_REMSH="ssh -x" <options> \
-f <appfile>
When using ssh on HP-UX, first ensure that it is possible to use ssh
from the host where mpirun is executed to the other nodes without ssh
requiring any interaction from the user.