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

Uploaded Source

Built Distribution

ssh_run-2.3.0-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for ssh-run-2.3.0.tar.gz
Algorithm Hash digest
SHA256 9dcc60c1f6102afb3a3c6f43718c09967431f8deb1918f880b5bb49fb339dcf7
MD5 81d0fa5e794aec0bf5167e6c23a05de4
BLAKE2b-256 461770b2bf94b6ea39f831917a99bc9490a465bee4daf28b8f0ccd29fe130d94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh_run-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5f062ecac94db7b65f0f88471f903bc61df51f7a5f54b8158d60a43c096b82cd
MD5 c07d7cf5a825f071b64acb9298a4293e
BLAKE2b-256 38bb2296b4213cf2870d60cc214bb6b7cee0062e912e94a4ca1ceea017689900

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