Skip to main content

A tool for running commands on remote servers

Project description

ssh-run on PyPI ssh-run on PyPI 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.

Project details


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-3.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

ssh_run-3.0.0-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ssh-run-3.0.0.tar.gz.

File metadata

  • Download URL: ssh-run-3.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ssh-run-3.0.0.tar.gz
Algorithm Hash digest
SHA256 d65d81b015c6f7f7de9bbfb9c920539795f2b884ff770039c882345dfb27b0b4
MD5 9e89bc455ee162e34c079f7a812d074a
BLAKE2b-256 fd6e12a18ce0b69b788c5ce4656487c347d30cb8778e36bae4f879d4ccfe9741

See more details on using hashes here.

File details

Details for the file ssh_run-3.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ssh_run-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8bffd6a4b28a6fd15382623d30be20aad6c303ed114fb4f2e8f8761e81a39808
MD5 521f24d2824638a7af476fad6cc7adeb
BLAKE2b-256 1e6a1a8c55da55b05d5c953f7ee4e7ac95933e8ef9230b57d1f08fa279e6d70b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page