def ssh_run_command(self, cmd):
        if not self.ssh_avail():
            raise HostNotConnectableError
        command = ["ssh",
                "-l", self.username,
                "-p", str(self.SSH_PORT),
                "-i", self.key,
                "-o", "StrictHostKeyChecking=no",
                "-o","UserKnownHostsFile=/dev/null",
                self.ip,
                ]
        command.extend(cmd)
        log.warning(' '.join(command))
        return subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
Runs a command on the remote machine with the given options.
dataset/ETHPy150Open bmbouter/Opus/opus/lib/ssh_tools.py/NodeUtil.ssh_run_command