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.1.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for ssh_distributed-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9aaebe07060743c589f9ab381d3a0fb22e8dfc942315d13e97923b68ca78b9c |
|
MD5 | c09f1b12c7601b43e44d9a348a0d0a7a |
|
BLAKE2b-256 | d424357dc5890b1827e444b9c0f3bdce29e762f36a8cc260ed377441aaf5e4dc |