#/bin/bash

# Run this script to ssh-copy-id to all nodes, including to master or localhost
# Have to standby to provide root password to enter each node when prompted

/share/bin/sshreachable > /dev/null
hosts=$(cat /share/tmp/ssh-reachable.dat)
echo 'available nodes are' $hosts
for i in $hosts
	do
	echo 'ssh-copy-id targetting node '"$i"
	ssh-copy-id "$i"
	done

