Class | Net::SSH::Service::Forward::Driver |
In: |
lib/net/ssh/service/forward/driver.rb
|
Parent: | Object |
The Forward::Driver class manages ports that have been forwarded. It will open a socket on each local port and listen for local connections, forwarding those connections over an SSH channel to the other end.
Cease forwarding connections from the given remote port. The remote_host parameter must match the corresponding parameter that was passed to remote. Existing forwarded connections are not affected by this call, but no more connections will be forwarded from the remote host to the local host via that port.
Open a direct "tcpip" channel to the remote machine, which will then forward the connection to the given remote-host and remote-port. The connection will appear to have come from the given port on the local machine.
The handler object may respond to the following messages, in order to respond to requests over the channel:
Only the process method is required—the others will only be invoked if the handler responds to them.