#! /bin/bash ### centos6_ssh-copy-cluster ### This script is tied to centos6_ssh. centos6_ssh-copy-cluster is to be run in a PC (PC = node or frontend) to copy its rsa public key to other PC for the user who is running this script. ### It is assumed that a public key has already been generated in the user's /home/.ssh ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.1.1 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.231 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.232 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.233 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.234 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.235 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.236 ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.255.237