FSSH, full name flash SSH, the goal is to use SSH flash bulk parallel remote execution command, simply deploy this script in the host computer, no need to be controlled by the machine side Installation Agent, tested 120 machine execution time within 3 seconds.
Source Address: Https://github.com/LaiJingli/fssh
How to use:
The main control side executes
0, need to install Sshpass (slightly)
1, wget https://raw.githubusercontent.com/LaiJingli/fssh/master/fssh.sh
2, chmod +x fssh.sh
3. Modify the IP address and commands in the script
4,./fssh.sh
Characteristics:
1, the main control side, the controlled end through SSH encrypted communication, and the control end no need to do any setup;
2, the command format and the direct input under bash, writing shell scripts and so on exactly the same way;
3, transparent support all commands, variables, single quotation marks, double quotes and other special characters, and in the local execution no difference;
4, support Sudo to mention right vote-free password, only need to add the corresponding permissions to the ordinary account sudoers, which is a lot of production environment of the administrator is a great boon, sudo can also be automated;
5, remote host execution results formatted output, a glance can be very intuitive to see the results of the implementation, you can also save to log for easy audit;
6. The number of executions of the automatic statistics task, including the number of total task, the number of tasks performed, the completion of execution and the number of successful tasks;
7, the implementation speed is flash speed
8, remote account can do SSH trust authentication, can also use the default password authentication, transparent to the user;
Execution efficiency:
120 remote host execution time within 10 seconds, the execution time is reduced to 3 seconds after the Flash SSH optimization option is turned on.
Effect:
fssh--Flash Batch Remote command execution tool source release