同時管理多個Linux機器的工具:Slex
Slex就一個go語言寫的同時管理多個Linux機器的工具,可以在多個主機上通過SSH執行命令,類似Python的Fabric,go方便的是編譯成一個可執行文件就搞定了。
slex -h NAME: slex - SSH commands multiplexedUSAGE: slex [global options] command [command options] [arguments...]
VERSION: 1
AUTHOR: @crosbymichael - <crosbymichael@gmail.com>
COMMANDS: help, h Shows a list of commands or help for one command
GLOBAL OPTIONS: --debug enable debug output for the logs --host '--host option --host option' SSH host address --user, -u 'root' user to execute the command as --identity, -i 'id_rsa' SSH identity to use for connecting to the host --agent, -A use ssh agent forwarding for authentication, rather than identity --help, -h show help --version, -v print the version</pre>