How to configure login without password and distributed control
login via ssh without password:
if there is no ~/.ssh/id_rsa.pub, do ssh-keygen -t rsa Note: press 3 times enter in order to have the empty password!
attach the content of the file you generated (do not overwrite!) to the file /root/.ssh/authorized_keys2 (on the s-bot!)
a script to start things in parallel on many s-bots:
make sure that you can access an sbot labeled with x, using ssh sbotx (see Halva's howto)
prepare a file with the s-bots you want to use:
cat hosts 16 19 26 27
each time you use the script, be sure that the file is up to date - if you start programs on s-bots which somebody else is using, there will be damage (e.g. s-bot 15?)
save the following to a file called cmd
if (( $# < 1 )) ; then
echo "usage $0 command to send to the hosts listed in the hosts file"
for host in `cat hosts` ; do
ssh root@sbot$host $@ &
chmod 700 cmd
try it: ./cmd ls