remote Port Forward
suspend fun remotePortForward(remoteBindAddress: String, remoteBindPort: Int, localHost: String, localPort: Int): PortForwarder?(source)
Start remote port forwarding (RFC 4254 section 7.1).
Asks the SSH server to listen on remoteBindAddress:remoteBindPort and forwards each connection back to localHost:localPort on this machine.
Return
PortForwarder handle, or null if the server rejected the request
Parameters
remote Bind Address
Address for the server to bind
remote Bind Port
Port for the server to bind (0 for automatic)
local Host
Local host to forward to
local Port
Local port to forward to