Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedric05/multi-ssh
https://github.com/cedric05/multi-ssh
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cedric05/multi-ssh
- Owner: cedric05
- Created: 2022-03-15T06:42:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T21:29:01.000Z (10 months ago)
- Last Synced: 2024-10-05T23:21:51.840Z (3 months ago)
- Language: Rust
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Multi-Ssh
Running a command across multiple servers is usuall devops job. Running same command across multiple instances is very rare, but i got myself into that.
Multi-ssh takes care of running same command across multiple instances and prints output accordingly, with readline (takes care of keeping history)
### Install
`cargo install --path .`
### Usage
`multi-ssh --tag cluster_dev --config node_config.json`
Run commands like a ssh-shell.
To copy files from local to all remote nodes, follow below format
`.copy ` (inspired from sqlite shell)
### Config file
```json
[
{
"public_address": "171.31.0.22",
"keyfile": "~/.ssh/id_rsa",
"tag": "cluster-alpha",
},
{
"public_address": "171.31.0.3",
"keyfile": "~/.ssh/id_rsa",
"tag": "cluster-alpha",
}
]
```