tunel.ssh package
Submodules
tunel.ssh.commands module
tunel.ssh.ssh module
- class tunel.ssh.ssh.Tunnel(server, **kwargs)[source]
Bases:
object
An ssh tunnel provides a route for the user to interact with an application This basically enables local port forwarding (called an ss tunnel) using the library Paramiko.
- execute(cmd, login_shell=False, quiet=False, stream=False, xserver=False)[source]
Execute a command via ssh and a known, named connection.
- execute_or_fail(cmd, success_code=0, quiet=False)[source]
Execute a command, show the command preview, only continue on success.
- print_output(output, success_code=0, quiet=False)[source]
Given an output dict, print and color appropriately.