def connect(self): # NOQA pylint: disable=R0912 self.shell = SshShell(password_prompt=self.password_prompt, timeout=self.default_timeout, telnet=self.use_telnet) self.shell.login(self.host, self.username, self.password, self.keyfile, self.port) self._is_ready = True