def ping ()
      log.debug "Pinging"
      Timeout.timeout(1) do
        TCPSocket.new(address, 22).close
      end
      true
    rescue Timeout::Error, Errno::ECONNREFUSED
      fail "Failed to ping #{self}"
    end
def ping ()
      log.debug "Pinging"
      Timeout.timeout(1) do
        TCPSocket.new(address, 22).close
      end
      true
    rescue Timeout::Error, Errno::ECONNREFUSED
      fail "Failed to ping #{self}"
    end
Attempt to connect to port 22 on the host.
 @return +true+
 @raise If it doesn't connect within 1 second.
 @api private