sshmitm.clients.ssh module

class sshmitm.clients.ssh.AuthenticationMethod(value)

Bases: Enum

An enumeration.

agent = 'agent'
password = 'password'
publickey = 'publickey'
class sshmitm.clients.ssh.BaseSSHClient(args: Optional[Sequence[str]] = None, namespace: Optional[Namespace] = None, **kwargs: Any)

Bases: BaseModule

class sshmitm.clients.ssh.SSHClient(host: str, port: int, method: AuthenticationMethod, password: Optional[str], user: str, key: Optional[PKey], session: Session)

Bases: BaseSSHClient

CIPHERS = None
check_host_key(hostname: str, keytype: str, key: PKey) bool

checks the host key, default always returns true

connect() bool