tomerfiliba / plumbum

Plumbum: Shell Combinators
https://plumbum.readthedocs.io
MIT License
2.79k stars 182 forks source link

Support SSH tunnels with dynamic free port allocation #608

Closed gschaffner closed 1 year ago

gschaffner commented 2 years ago

Hi! This adds two new features:

This also adds a reverse property to SshTunnel. lhost and dhost properties could also be added if deemed useful—I imagine the use primary cases there would be to check what address the tunnel was bound to or if the tunnel is for ports or sockets.

This PR probably should also update SshMachine().tunnel's docs. Note that #562 did not update docs for reverse.

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.09%) to 83.758% when pulling fc968c52422a26072ef76272e54c85d6e8ed507f on gschaffner:dynamic-ssh-tunnel-ports into 70380ddc5ad346ab6758506f5000864260a9c418 on tomerfiliba:master.