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.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for ssh_distributed-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5748f2452a1a93532b7ae6de4fbc478aa25db02eb0cc48428ff6896c625372ad |
|
MD5 | 609d834a7112d42010effc5ff08aa87b |
|
BLAKE2b-256 | 8f4c09ae3bde3924279ab159de2c0f336157fd4f0883130690a65af9aa2501ce |