code: def connect(host, default_protocol='telnet', **kwargs):
      
      host = to_host(host)
      conn = prepare(host, default_protocol, **kwargs)
      account = host.get_account()
      conn.connect(host.get_address(), host.get_tcp_port())
      if account is not None:
          conn.login(account)
      return conn
docs: Like :class:`prepare()`, but also connects to the host by calling
      :class:`Protocol.connect()`. If the URL or host contain any login info, this
      function also logs into the host using :class:`Protocol.login()`.
  
      :type  host: str or Host
      :param host: A URL-formatted hostname or a :class:`Exscript.Host` object.
      :type  default_protocol: str
      :param default_protocol: Protocol that is used if the URL specifies none.
      :type  kwargs: dict
      :param kwargs: Passed to the protocol constructor.
      :rtype:  Protocol
      :return: An instance of the protocol.