#! /bin/bash ### ssh_allinone ### This script will try to install passwordless ssh among the frontend and nodes semiautomatically. ### Note: this script may not be required if /home/common/nfs has been successfully exported by frontend and shared amomg the nodes using nfs. # Instruction: # Log in frontend after it is rebooted at the end of centos6_frontend as user common. # Run this script by issuing 'sh /home/common/nfs/ssh_allinone'. # After running this script, do the following MANUAL procedure: ssh from the frontend into each node as common to execute the file ssh_wo_passwd_to_all_PCs_for_cluster in /home/common. Do this one by one for all nodes. # # node1 | sh ~/ssh_wo_passwd_to_all_PCs_for_cluster # node2 | sh ~/ssh_wo_passwd_to_all_PCs_for_cluster # ... ### End of instruction. ########### chmod +x /home/common/nfs/* cd /home/common sh /home/common/nfs/ssh_wo_passwd_to_all_PCs_for_cluster ## copy all the relevant files to each node scp -r /home/common/nfs* 10.1.255.231:~/ scp -r /home/common/nfs* 10.1.255.232:~/ scp -r /home/common/nfs* 10.1.255.233:~/ scp -r /home/common/nfs* 10.1.255.234:~/ scp -r /home/common/nfs* 10.1.255.235:~/ scp -r /home/common/nfs* 10.1.255.236:~/ scp -r /home/common/nfs* 10.1.255.237:~/ # Now each nodes should find the files ssh_wo_passwd_to_all_PCs_for_cluster, ssh-agen, ssh-copy-cluster in /home/common/