code: def connect(self):
          
          self._client = Telnet(self.hostname, self.port)
          self.closed = False
          query = {
              "MPRPC": self.VERSION,
              "AUTH": {
                  "USERNAME": self.username,
                  "PASSWORD": self.password
              }
          }
          queryb = self.encoder(query)
          if self.debug is True:
              print("send auth {}".format(queryb))
          self._client.write(queryb)
          self.remote_info = self._responsehandler()
docs: 与远端建立连接,并进行验证身份.