\mrsh{} is a secure remote shell utility, like ssh, which uses \MUNGE{}
for authentication and encryption. By using the \MUNGE{} installation used by
\SLURM{}, \mrsh{} provides shell access to systems using the same \MUNGE{} key
without having to track {ssh} keys. Like {ssh}, \mrsh{} provides a
remote copy command, {\em mrcp}, and can be used as a {\em rcmd} by {\em
pdsh}. Example installation and configuration is as follows:

%\clearpage
% begin_ohpc_run
% ohpc_validation_newline
% ohpc_command if [[ ${enable_mrsh} -eq 1 ]];then
% ohpc_indent 5
% ohpc_validation_comment Install mrsh
\begin{lstlisting}[language=bash,keywords={},upquote=true]
# Install mrsh
[sms](*\#*) (*\install*) mrsh-ohpc mrsh-rsh-compat-ohpc
[sms](*\#*) (*\chrootinstall*) mrsh-ohpc mrsh-rsh-compat-ohpc mrsh-server-ohpc

# Identify mshell and mlogin in services file
[sms](*\#*) echo "mshell          21212/tcp                  # mrshd" >> /etc/services
[sms](*\#*) echo "mlogin            541/tcp                  # mrlogind" >> /etc/services

# Enable xinetd on compute nodes
[sms](*\#*) psh compute systemctl enable xinetd
[sms](*\#*) psh compute systemctl start  xinetd
\end{lstlisting}
% ohpc_indent 0
% ohpc_command fi
% end_ohpc_run

