tardis.utilities.executors.sshexecutor module

class tardis.utilities.executors.sshexecutor.SSHExecutor(**parameters)[source]

Bases: Executor

property bounded_connection

Get the current connection with a single reserved session slot

This is a context manager that guards the current SSHClientConnection so that only MaxSessions commands run at once.

property lock

Lock protecting the connection

async run_command(command, stdin_input=None)[source]

Run command in a shell and provide the result

async tardis.utilities.executors.sshexecutor.probe_max_session(connection: SSHClientConnection)[source]

Probe the sshd MaxSessions, i.e. the multiplexing limit per connection