Last active
March 18, 2020 17:19
-
-
Save reintakura/232765dd624f5b2a303b7f95b24c82cc to your computer and use it in GitHub Desktop.
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
for s in 192.168.1.{1..254}; do ssh ubuntu@${s} 'uname -a && hostname' ; done | |
for s in 192.168.1.{1..254}; do scp -i key.pem ubuntu@${s}:/remote/dir/foobar.txt /local/dir ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment