# File lib/net/ssh/service/forward.rb, line 119
119:     def remote(port, host, remote_port, remote_host="127.0.0.1")
120:       session.send_global_request("tcpip-forward", :string, remote_host, :long, remote_port) do |success, response|
121:         if success
122:           debug { "remote forward from remote #{remote_host}:#{remote_port} to #{host}:#{port} established" }
123:           @remote_forwarded_ports[[remote_port, remote_host]] = Remote.new(host, port)
124:         else
125:           error { "remote forwarding request failed" }
126:           raise Net::SSH::Exception, "remote forwarding request failed"
127:         end
128:       end
129:     end