skip to navigation
skip to content

Not Logged In

ssh-run 3.1.0

A tool for running commands on remote servers


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.

 
File Type Py Version Uploaded on Size
ssh-run-3.1.0.tar.gz (md5) Source 2015-08-18 5KB
ssh_run-3.1.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2015-08-18 10KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 491 downloads in the last week
  • 6008 downloads in the last month