waft.system.clients.ssh_client.ssh_connection module¶
- class waft.system.clients.ssh_client.ssh_connection.SshConnection(connection_details: ConnectionDetails, env_vars: Dict | None = None)¶
Bases:
object
Handles SSH connections with optional proxy/gateway support.
- property connection: Connection¶
Create and return a connection to the target system.
- Returns:
A Fabric Connection object for the target system.
- Return type:
Connection
- property proxy_connection: Connection | None¶
Create and return a connection to the proxy system.
- reset()¶
Reset connection for the current session
- run(client_command: ClientCommand, **kwargs) Result ¶
Run a command on the remote system, using sudo if necessary.
- Parameters:
client_command – (ClientCommand) Command to run remotely
**kwargs – Extra args for connection.run() or connection.sudo()
Returns: Result object from fabric