5.6. Enabling RSH on Compute Nodes

The default Rocks configuration does not enable rsh commands or login to compute nodes. Instead, Rocks uses ssh as a drop in replacement for rsh. There may be some circustances where ssh does not have exactly the same semantics of rsh. Further, there may be some users that cannot modify their application to switch from rsh to ssh. If you are one of these users you may wish to enable rsh on your cluster.

Warning

Enabling rsh on your cluster has serious security implicatation. While it is true rsh is limited to the private-side network this does not mean it is as secure as ssh.

Enabling rsh is done by modifying the default kickstart graph. First copy the default rsh.xml into the site customization directory:

# cp /home/install/rocks-dist/lan/arch/build/graphs/default/base-rsh.xml \
	/home/install/site-profiles/4.1/graphs/default/

Where arch is your architecture ("i386", "x86_64" or "ia64").

Now edit /home/install/site-profiles/4.1/graphs/default/base-rsh.xml and change the following:

        <!-- Uncomment to enable RSH on your cluster

        <edge from="slave-node">
                <to>xinetd</to>
                <to>rsh</to>
        </edge>

        -->

Follow the instruction and uncomment this block. This will force all appliance types that reference the slave-node class (compute nodes, nas nodes, ...) to enable an rsh service that trusts all hosts on the private side network. This uncommented block should look like this:

        <edge from="slave-node">
                <to>xinetd</to>
                <to>rsh</to>
        </edge>

To apply your customized configuration scripts to compute nodes, rebuild the distribution:

# cd /home/install
# rocks-dist dist

Then, reinstall your compute nodes.