sshmitm.forwarders.ssh module

class sshmitm.forwarders.ssh.SSHBaseForwarder(session)

Bases: BaseForwarder

Parameters:

session (Session)

check_if_channels_are_closed()
Return type:

bool

property client_channel: Channel | None

Returns the client channel for the current plugin type

class sshmitm.forwarders.ssh.SSHForwarder(session)

Bases: SSHBaseForwarder

forwards the terminal session to the remote server without modification

Parameters:

session (Session)

forward()

Forwards data between the client and the server

Return type:

None

forward_extra()
Return type:

None

forward_stderr()
Return type:

None

forward_stdin()
Return type:

None

forward_stdout()
Return type:

None

stderr(text)
Parameters:

text (bytes)

Return type:

bytes

stdin(text)
Parameters:

text (bytes)

Return type:

bytes

stdout(text)
Parameters:

text (bytes)

Return type:

bytes