Skip to main content

Microlib for managing distributed computations using ssh.

Project description

ssh_distributed

ssh_distributed is a very simple microlib for managing distributed computations using ssh.

Note: only works on Linux-based machines.

Install with:

pip install ssh_distributed

Create autossh tunnel with port remapping

import ssh_distributed

ssh_distributed.create_tunnel(
    from_host="home00.local",
    to_host="home01.local",
    from_port=61001,
    to_port=61000,
    tmux_session_name="autossh_next"
)

Upload directory to hosts

import ssh_distributed

ssh_distributed.upload_to_hosts(
    path="<PATH>",
    hosts=[
        "home00.local",
        "home01.local",
        "home02.local"
    ]
)

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_distributed-0.2.2.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

ssh_distributed-0.2.2-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

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