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.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for ssh_distributed-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da29933e7da9757b26eb9e1b5b901825e75a4d6f770143b809edef30de1a4abc |
|
MD5 | 64ae16ea83a3e8a87885c37e4f56341c |
|
BLAKE2b-256 | 5cf5147eedd0c0c3c2b2c95b08306921d1e970e75bef916bfe380f8e00dd66aa |