Top
PRIMECLUSTER  Cluster Foundation Configuration and Administration Guide 4.6
FUJITSU Software

1.1.3 CF security

PRIMECLUSTER includes the following facilities for cluster communications if you do not want to use .rhosts:

These tools are provided to allow cluster configuration in an environment which does not permit rsh and rcp. They are specialized utilities that do not provide all the functionality of rsh and rcp and are not intended as replacements.

1.1.3.1 cfcp/cfsh

CF includes the ability to allow cluster nodes to execute commands on another node (cfsh) and to allow cluster nodes to copy files from one node to another (cfcp). However, this means that your cluster interconnects must be secure since any node that can join the cluster has access to these facilities. Because of this, these facilities are disabled by default.

PRIMECLUSTER 4.1 and higher offers a chance to configure these facilities. As one of the final steps of the CF Configuration Wizard in the Cluster Adm GUI, there are two checkboxes. Checking one enables remote file copying and checking the other enables remote command execution.

To enable remote access using cfcp/cfsh, set the following parameters in cluster.config:

CFCP "cfcp" 
CFSH "cfsh"

To deactivate, remove the settings from the /etc/default/cluster.config file and run cfset -r.

Refer to the section "1.1.2 cfset" in this chapter for more information.

1.1.3.2 sshconf

You can use the sshconf tool to set up non-interactive ssh access among a list of nodes. Running sshconf is similar to setting up the .rhosts file for rsh.

sshconf uses the RSA authentication method and protocol version 2. If it exists, sshconf uses the default authentication key $HOME/.ssh/id_rsa, or it creates the key it if does not already exist.

Example

Examples of the sshconf tool are as follows:

  • Enable one way access between nodes:

    shasta1# sshconf shasta2 shasta3 shasta4

    Running this command on shasta1 sets up one way ssh access from shasta1 to shasta2, shasta3, and shasta4 respectively.

  • Disable one-way access to a node:

    shasta1# sshconf -d shasta2 shasta3 shasta4

    Running this command on shasta1 disables ssh access from shasta1 to shasta2, shasta3, and shasta4. This means that shasta1 does not have ssh access to shasta2, shasta3, and shasta4; however, shasta2, shasta3, and shasta4 still have the same ssh access as before running the command.

  • Enable two-way access without password:

    shasta1# sshconf -c shasta2 shasta3 shasta4 

    Running this command on shasta1 sets up ssh access among shasta2, shasta3, and shasta4 without being asked for a password. Note that shasta1 (where the command is run) is not automatically included. shasta1 only has one-way ssh access to shasta2, shasta3, and shasta4.

Note

ssh is not supported by Wizard Tools.