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

Uploaded Source

Built Distribution

ssh_run-3.1.0-py2.py3-none-any.whl (10.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for ssh-run-3.1.0.tar.gz
Algorithm Hash digest
SHA256 99726e25cc038809cb846f175fa47cd5e47c44c8f2a976ef7a38c002f43562eb
MD5 93a7340ffcb7c3a3d4a41ef159ea6c0a
BLAKE2b-256 6d19fbdf674d194f6f566c98da35be54f89384a5b5d666ff7bb3579d63ff239a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ssh_run-3.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 57ee213ed0add0a5684a15e9cef39cf8d32a402ac2ac15e4b1e2ec580efd9cad
MD5 400b6d3c9b74100843cdc9f26b94e5b5
BLAKE2b-256 7b144d010eee2fadd8853985d59399f2daf15893a64a97133d0f6015b4098063

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