A tool for running commands on remote servers
Project description
Run a shell command across multiple SSH servers in sequence.
Installation
pip install ssh-run
Usage
Show usage information with:
ssh-run –help
Examples
Run a command on a single remote host:
ssh-run -h example.com – echo hello world
Run a command on multiple remote hosts:
cat hosts | ssh-run -H - – echo hello world
Run a command on hosts matched by a chef search:
knife search -i “chef_evironment:staging” 2>/dev/null | ssh-run -H - – echo hello world
Start a shell for running multiple commands:
ssh-run -h host1 -h host2
Requirements
Runs on Python 2.6 and above, including Python 3.
Licence
ssh-run is licenced under the MIT Licence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssh-run-2.2.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for ssh_run-2.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552b855b65f11e481e4792abec0a9aebb8f5bd5f5e7cc7c06aedbdf5828c7968 |
|
MD5 | 8f17850b4baa571bc6d7d889aa744a42 |
|
BLAKE2b-256 | 9100bbd7571da5bf811ccbce49285c10b38e42e73305af37e49f3557b7efb5e2 |