Tunnel¶
-
class
baboossh.Tunnel(connection, port=None)[source]¶ Open SOCKS tunnel to a
HostEach tunnel is opened in distinct thread so that BabooSSH is still usable while the tunnel is open.
-
connection¶ the tunnel exit
- Type
-
port¶ the tunnel entrance (local) port. Uses a random port if none is provided.
- Type
int
-
__init__(connection, port=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(connection[, port])Initialize self.
close()Close a previously opened port
-
-
class
baboossh.SocksProxy(request, client_address, server)[source]¶ -
__init__(request, client_address, server)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(request, client_address, server)Initialize self.
handle()get_available_methods(n)generate_failed_reply(address_type, error_number)exchange_loop(client, remote)-