def ssh_execute(dest, *cmd, **kwargs):
 ssh_cmd = ['ssh', '-o', 'BatchMode=yes']
 ssh_cmd.append(dest)
 ssh_cmd.extend(cmd)
 return execute(*ssh_cmd, **kwargs)

def ssh_execute ( dest , * cmd , ** kwargs ) : ssh_cmd = [ 'ssh' , '-o' , 'BatchMode=yes' ] ssh_cmd . append ( dest ) ssh_cmd . extend ( cmd ) return execute ( * ssh_cmd , ** kwargs )
convenience wrapper to execute ssh command .