同时管理多个Linux机器的工具:Slex

jopen 9年前

Slex就一个go语言写的同时管理多个Linux机器的工具,可以在多个主机上通过SSH执行命令,类似Python的Fabric,go方便的是编译成一个可执行文件就搞定了。

slex -h  NAME:     slex - SSH commands multiplexed    USAGE:     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

项目主页:http://www.open-open.com/lib/view/home/1413636151137