Skip to content

Commit 985ad92

Browse files
authored
Update README.md
1 parent 24099b5 commit 985ad92

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
11
# sshpro
22
批量管理工具,阉割版ansible
3+
4+
## 使用
5+
1. git clone https://github.com/pythonzm/sshpro.git
6+
2. cd sshpro && go build
7+
8+
当前目录下会生成可执行文件sshpro,将文件链接到bin下:`ln -sv $PWD/sshpro /bin/sshpro`
9+
10+
### 查看使用帮助
11+
12+
```shell
13+
[root@test sshpro]# sshpro -h
14+
ansible的阉割版。。。
15+
16+
Usage:
17+
sshpro [flags]
18+
sshpro [command]
19+
20+
Available Commands:
21+
copy 传输本地文件到远程主机
22+
help Help about any command
23+
24+
Flags:
25+
-c, --command string 执行命令
26+
--config string 指定配置文件 (default is $HOME/.sshpro.yaml)
27+
--go-num int 并发数 (default 5)
28+
-g, --group string 根据配置文件指定某个组执行命令,多个组用','隔开
29+
-h, --help help for sshpro
30+
--host-net string 主机段,例如:192.168.1.0/24
31+
--host-range string 主机范围,例如:10.1.1.1-10.1.1.254
32+
--hosts string 远程主机IP, 可以是一个或多个,多个用主机用','隔开
33+
-k, --key string 主机密钥位置,使用绝对路径
34+
-P, --password string 远程用户密码
35+
-p, --port string 远程端口 (default "22")
36+
-u, --username string 远程使用用户 (default "root")
37+
--version version for sshpro
38+
39+
Use "sshpro [command] --help" for more information about a command.
40+
```

0 commit comments

Comments
 (0)