Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Created May 28, 2014 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gene1wood/2aba0436a63952e8bda9 to your computer and use it in GitHub Desktop.
Save gene1wood/2aba0436a63952e8bda9 to your computer and use it in GitHub Desktop.
pssh with sudo
# The key to using pssh and sudo is the `--extra-args='-t -t' trick
pssh -H "`cat hostlist.txt`" \
--user ec2-user \
--timeout=0 \
--inline \
--par=10 \
--extra-args='-t -t -o StrictHostKeyChecking=no' \
'sudo cat /etc/shadow'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment