Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2. # Hosts
  3. hostarray=(
  4. "host1"
  5. "host2"
  6. "host3"
  7. )
  8.  
  9. for i in "${hostarray[@]}"; do
  10. ssh "$i" "command here"
  11. done
  12.  
  13. ssh -tt user@host
  14.  
  15. Defaults:puppet
  16.  
  17. puppet ALL=(ALL) NOPASSWD: ALL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement