connectors.ssh

Contains a connector which handles connections to hosts via SSH.

class ssh.SshConnector

A tunnel connector that provides remote access via SSH.

def SshConnector.command()

def SshConnector.command(self) -> list[str]:

Constructs the full ssh command needed to execute a tunnel dispatcher on the remote host.

Returns

  • list[str]: The required ssh command.

def SshConnector.extract_hostname()

def SshConnector.extract_hostname(cls, url: str) -> str:

Last updated