A project to manage multiple ssh connections simultaniously
Go to file
2024-12-13 21:30:21 +01:00
src Don't attempt to upload if no servers were given 2024-12-13 21:30:21 +01:00
test-ressources/files Add file module 2024-12-12 19:45:45 +01:00
.gitignore init 2024-12-11 10:42:44 +01:00
Cargo.toml Refactor: Move server logic into server module 2024-12-12 11:59:00 +01:00
README.md Add README.md 2024-12-13 13:22:49 +01:00
rustfmt.toml init 2024-12-11 10:42:44 +01:00

multi-ssh

An application to upload a file or perform a command on multiple servers via ssh and scp.

Configuration

Set the environment variable MSSH_SERVERS to configure the server directories of your ssh servers

Linux example

export MSSH_SERVERS="crea:server/creative2,sky:sky,city:city2"

Usage

For detailed usage please see:

multi-ssh --help

Command example

Delete the WorldGuard folder on crea, sky and city:

multi-ssh crea sky city -c "rm -r plugins/WorldGuard" 

Upload example

Upload a new version of the MenuApi plugin and delete old versions from the servers:

multi-ssh crea sky city minez lobby -u target/MenuApi-3.4.2.jar 

Upload a new version of the MineZ plugin but keep backups of the older versions:

multi-ssh minez -u target/MineZ-3.0.jar -a 

The program will show you an overview of what it will be doing before actually performing any of the actions:

minez:
* renaming MineZ-2.7.jar -> MineZ-2.7.jarr
+ adding MineZ-3.0.jar
Continue [Y|n]: 

For detailed usage of the upload feature see

multi-ssh -u --help