def execute(self, cmd, block_size=DEFAULT_EXECUTE_READ_BLOCK_SIZE):
with SshChannel(self) as sc:<EOL><INDENT>self.__log.debug("<STR_LIT>" % (cmd))<EOL>sc.open_session()<EOL>sc.request_exec(cmd)<EOL>buffer_ = bytearray()<EOL>while <NUM_LIT:1>:<EOL><INDENT>bytes = sc.read(block_size)<EOL>yield bytes<EOL>if len(bytes) < block_size:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>
Execute a remote command. This functionality does not support more 
        than one command to be executed on the same channel, so we create a 
        dedicated channel at the session level than allowing direct access at
        the channel level.