Created
May 28, 2014 18:05
-
-
Save gene1wood/2aba0436a63952e8bda9 to your computer and use it in GitHub Desktop.
pssh with sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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