# File lib/net/ssh/service/forward.rb, line 129
129:     def remote(port, host, remote_port, remote_host="127.0.0.1")
130:       session.send_global_request("tcpip-forward", :string, remote_host, :long, remote_port) do |success, response|
131:         if success
132:           debug { "remote forward from remote #{remote_host}:#{remote_port} to #{host}:#{port} established" }
133:           @remote_forwarded_ports[[remote_port, remote_host]] = Remote.new(host, port)
134:         else
135:           error { "remote forwarding request failed" }
136:           raise Net::SSH::Exception, "remote forwarding request failed"
137:         end
138:       end
139:     end