def _run_ssh_command(entries, username, idfile, command, tunnel,<EOL>parallel=False):
if len(entries) == <NUM_LIT:0>:<EOL><INDENT>print('<STR_LIT>')<EOL>return <NUM_LIT:1><EOL><DEDENT>if command.strip() == '<STR_LIT>' or command is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>print('<STR_LIT>'<EOL>.format(green(repr(command)), len(entries)))<EOL>shell_cmds = []<EOL>for entry in entries:<EOL><INDENT>hname = entry.hostname or entry.public_ip<EOL>cmd = _build_ssh_command(hname, username, idfile, command, tunnel)<EOL>shell_cmds.append({<EOL>'<STR_LIT>': cmd,<EOL>'<STR_LIT:description>': entry.display()<EOL>})<EOL><DEDENT>stream_commands(shell_cmds, parallel=parallel)<EOL>print(green('<STR_LIT>'))<EOL>
Runs the given command over SSH in parallel on all hosts in `entries`.

:param entries: The host entries the hostnames from.
:type entries: ``list`` of :py:class:`HostEntry`
:param username: To use a specific username.
:type username: ``str`` or ``NoneType``
:param idfile: The SSH identity file to use, or none.
:type idfile: ``str`` or ``NoneType``
:param command: The command to run.
:type command: ``str``
:param parallel: If true, commands will be run in parallel.
:type parallel: ``bool``