'Run a command on a remote server.
:param      cmd: Command to run.
:type       cmd: ``list`` of ``str``
:return: Command stdout, stderr and status code.
:rtype: ``tuple``'

def _run_remote_shell_command(self, cmd):

    base_cmd = self._get_base_ssh_command()
    full_cmd = (base_cmd + ['    '.join(cmd)])
    self.logger.debug(('Executing    command:    "%s"' % '    '.join(full_cmd)))
    child = subprocess.Popen(full_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    (stdout, stderr) = child.communicate()
    return (stdout, stderr, child.returncode)
