pssh -t 0 -o output -h hosts "echo hello world"
// -t : timeout, 0 for no timeout // -o : name of folder to write output // -h : file with hostnames, one per line
// put the following in your ssh config so you won't be prompted StrictHostKeyChecking no