dynamic Port Forward
suspend fun dynamicPortForward(bindAddress: InetSocketAddress, authenticator: Socks5Authenticator? = null): PortForwarder?(source)
Start dynamic (SOCKS5) port forwarding.
Listens on bindAddress locally as a SOCKS5 proxy. Each SOCKS5 CONNECT request opens a direct-tcpip channel through SSH to the requested destination.
Return
PortForwarder handle, or null if not authenticated
Parameters
bind Address
Local address to bind the SOCKS5 proxy
authenticator
Optional SOCKS5 username/password authenticator
suspend fun dynamicPortForward(bindPort: Int, authenticator: Socks5Authenticator? = null): PortForwarder?(source)
Start dynamic (SOCKS5) port forwarding bound to localhost.
Return
PortForwarder handle, or null if not authenticated
Parameters
bind Port
Local port to bind (0 for automatic)
authenticator
Optional SOCKS5 username/password authenticator