I'm trying to use "swift - nio - SSH" library to realize the remote port agent SSH client, similar to the -R command in SSH clients. in official document says
NIOSSHHandler. SendGlobalRequest
GlobalRequest.TCPForwardingRequest.listen(host:port:)
GlobalRequest. TCPForwardingRequest. Cancel (host: port:)
I don't know how to make it work properly