|
|||
6.1 SCP/RCP SetupTo utilize scp based data management, TORQUE must be authorized to migrate data to any of the compute nodes. If this is not already enabled within the cluster, this can be achieved with the process described below. This process enables uni-directional access for a particular user from a source host to a destination host.
6.1.1 - Generate SSH Key on Source HostOn the source host as the transfer user, execute:This will prompt for a passphrase (optional) and create two files id_rsa and id_rsa.pub inside ~/.ssh/. 6.1.2 - Copy Public SSH Key to Each Destination HostTransfer public key to each destination host as the transfer user:Create an authorized_keys file on each destination host. (If the .ssh directory does not exist, create it with 700 privileges (mkdir .ssh;chmod 700 .ssh) 6.1.3 - Configure the SSH Daemon on Each Destination HostSome configuration of the ssh daemon may be required on the destination host. (Because this is not always the case, skip down to step 4 and test the changes made up to this point. If the tests fail, proceed with this step and then try testing again.) Typically, this is done by editing the /etc/ssh/sshd_config file (root access needed.) To verify correct configuration, see that the following attributes are set (not commented): If configuration changes were required, the ssh daemon will need to be restarted (root access needed):6.1.4 - Validating Correct SSH ConfigurationIf all is properly configured, the following command issued on the source host should succeed and not prompt for a password: Note that if this is your first time accessing destination from source, it may ask you if you wish to add the fingerprint to a file of known hosts. If you type 'yes' and this message should no longer appear and should not interfere with scp copying via TORQUE. Also, it is important that the full hostname appear in the known_hosts file. To do this, use the full hostname for destHost, as inmachine.domain.org instead of just machine.
6.1.5 - Enabling Bi-Directional SCP AccessThe above steps allows source access to destination without prompting for a password. The reverse, however, is not true. Repeat the above steps, but this time using the destination as the source, etc. to enable bi-directional SCP access (i.e. isource can send to destination and destination can send to source without password prompts.)6.1.6 - Compile TORQUE to Support SCPTORQUE must be re-configured (and then rebuilt) to use SCP by passing in the --with-scp flag to the configure script:
TroubleshootingIf, after following all of these steps, TORQUE is still having problems transferring data with scp set the PBSDEBUG environment variable and restart the pbs_mom for details about copying. Also check the MOM log files for more details.
|
|||
| © 2001-2008 Cluster Resources, Incorporated | |||