docs: def reconnect(self):
          '''
          Try to reconnect and re-authenticate with the server.
          '''
          log.debug('Closing the SSH socket.')
          try:
              self.ssl_skt.close()
          except socket.error:
              log.error('The socket seems to be closed already.')
          log.debug('Re-opening the SSL socket.')
          self.authenticate()