Skip to content

Commit

Permalink
README VERSION 0.4.0
Browse files Browse the repository at this point in the history
更新 readme 和 example
  • Loading branch information
freedomkk-qfeng committed Feb 11, 2022
1 parent 770df71 commit 5385062
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 55 deletions.
80 changes: 43 additions & 37 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -29,40 +29,42 @@ https://github.com/shanghai-edu/multissh/releases/
# ./multissh -h
Usage of ./multissh:
-c string
cfg File Path
cfg File Path
-ciphers string
ciphers
ciphers
-cmdfile string
cmdfile path
cmdfile path
-cmds string
cmds
cmds
-f string
write file locate
write file locate
-hostfile string
hostfile path
hostfile path
-hosts string
host address list
host address list
-ipfile string
ipfile path
ipfile path
-ips string
ip address list
-j print output in json format
ip address list
-j print output in json format
-k string
ssh private key
-l In linux mode,multi command combine with && ,such as date&&cd /opt&&ls
ssh private key
-keyexchanges string
keyexchanges
-l In linux mode,multi command combine with && ,such as date&&cd /opt&&ls
-n int
max execute number (default 20)
max execute number (default 20)
-outTxt
write result into txt
write result into txt
-p string
password
password
-port int
ssh port (default 22)
ssh port (default 22)
-t int
max timeout (default 30)
max timeout (default 30)
-u string
username
-v show version
username
-v show version
```
**cmdfile 示例**
```
Expand All @@ -82,24 +84,28 @@ show clock
**ssh.json 示例**
```
{
"SshHosts": [
{
"Host": "192.168.31.51",
"Port": 22,
"Username": "admin",
"Password": "admin",
"cmds":"show clock;show clock"
},
{
"Host": "192.168.80.131",
"Port": 22,
"Username": "root",
"Password": "",
"key": "./server.key",
"linuxMode": true,
"CmdFile": "cmd2.txt.example"
}
]
"SshHosts": [{
"Host": "192.168.31.51",
"Port": 22,
"Username": "admin",
"Password": "admin",
"cmds": "show clock;show clock"
},
{
"Host": "192.168.80.131",
"Port": 22,
"Username": "root",
"Password": "",
"key": "./server.key",
"linuxMode": true,
"CmdFile": "cmd2.txt.example"
}
],
"Global": {
"Ciphers": "aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc",
"KeyExchanges": "diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1"
}
}
```

Expand Down
40 changes: 22 additions & 18 deletions ssh.json.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{
"SshHosts": [
{
"Host": "192.168.31.51",
"Port": 22,
"Username": "admin",
"Password": "admin",
"cmds":"show clock;show clock"
},
{
"Host": "192.168.80.131",
"Port": 22,
"Username": "root",
"Password": "",
"key": "./server.key",
"linuxMode": true,
"CmdFile": "cmd2.txt.example"
}
]
"SshHosts": [{
"Host": "192.168.31.51",
"Port": 22,
"Username": "admin",
"Password": "admin",
"cmds": "show clock;show clock"
},
{
"Host": "192.168.80.131",
"Port": 22,
"Username": "root",
"Password": "",
"key": "./server.key",
"linuxMode": true,
"CmdFile": "cmd2.txt.example"
}
],
"Global": {
"Ciphers": "aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc",
"KeyExchanges": "diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1"
}

}

0 comments on commit 5385062

Please sign in to comment.