# File lib/net/ssh/gateway.rb, line 68
  def initialize(host, user, options={})
    @session = Net::SSH.start(host, user, options)
    @session_mutex = Mutex.new
    @port_mutex = Mutex.new
    @next_port = MAX_PORT

    initiate_event_loop!
  end