https://github.com/lobz1g/ssh-multy-cmd
Utility for sending commands to hosts and recieve messages from this one
https://github.com/lobz1g/ssh-multy-cmd
command command-line-tool golang golang-application output ssh ssh-client
Last synced: 2 months ago
JSON representation
Utility for sending commands to hosts and recieve messages from this one
- Host: GitHub
- URL: https://github.com/lobz1g/ssh-multy-cmd
- Owner: lobz1g
- License: mit
- Created: 2020-04-05T11:10:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T16:32:11.000Z (about 5 years ago)
- Last Synced: 2025-01-18T07:31:55.323Z (4 months ago)
- Topics: command, command-line-tool, golang, golang-application, output, ssh, ssh-client
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-multy-cmd
Small utility for sending some commands to different hosts and receive response from this one
## Configuration
In config/config.json placed fields for connection to hosts
```json
[
{
"host": "host1:port_for_host1",
"user": "user_for_host1",
"password": "pass_for_host1",
"cmd": "command_for_host1"
},
{
"user": "user",
"password": "pass",
"host": "127.0.0.1:22",
"cmd": "ls -l"
}
]
```## Output
There are two outputs channels. Console and file. _YOU NEED TO CEREATE FOLDER `log`_
* In the console will be symbol `X` for bad response or some errors and symbol `V` for good result
* In the file will be detail information about error/responseFile can be named:
* `host.log` for response from the host. e.g `127_0_0_1.log`
* `localhost.log` for errors