https://github.com/borntyping/ssh-run
Sequentially run commands on multiple servers
https://github.com/borntyping/ssh-run
cli python ssh
Last synced: about 1 year ago
JSON representation
Sequentially run commands on multiple servers
- Host: GitHub
- URL: https://github.com/borntyping/ssh-run
- Owner: borntyping
- Created: 2014-04-11T10:44:05.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T11:23:56.000Z (almost 11 years ago)
- Last Synced: 2025-04-12T22:39:23.523Z (about 1 year ago)
- Topics: cli, python, ssh
- Language: Python
- Homepage:
- Size: 292 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
ssh-run
=======
.. image:: https://img.shields.io/pypi/v/ssh-run.svg
:target: https://warehouse.python.org/project/ssh-run/
:alt: ssh-run on PyPI
.. image:: https://img.shields.io/pypi/l/ssh-run.svg
:target: https://warehouse.python.org/project/ssh-run/
:alt: ssh-run on PyPI
.. image:: https://img.shields.io/github/issues/borntyping/ssh-run.svg?style=flat-square
:target: https://github.com/borntyping/ssh-run/issues
:alt: GitHub issues for ssh-run
|
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 `_.
Author
------
Written by `Sam Clements `_ at
`DataSift `_.