- Read a file of server names (.txt) line by line
- loop through each server name and connect by ssh
Any suggestions, comments, and ideas?
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.
Try something like this,
I have not tested it, but in principle it should loop over servers in server_names.txt and connect to them.
|show 1 more comment|
Use GNU Parallel and get it done in parallel:
10 seconds installation:
Watch the intro video for a quick introduction: https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1