def make_ssh_cmd(cmd_name, host):
    """
    Return a command running `cmd_name` on `host` with proper SSH configs.
    """
    return "ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 %s '%s'" % (host, cmd_name)