def copy_file_to_remote(self, local_path, remote_path):
sftp_client = self.transport.open_sftp_client()<EOL>LOG.debug('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>{'<STR_LIT:src>': local_path, '<STR_LIT:target>': remote_path})<EOL>try:<EOL><INDENT>sftp_client.put(local_path, remote_path)<EOL><DEDENT>except Exception as ex:<EOL><INDENT>LOG.error('<STR_LIT>'<EOL>'<STR_LIT>' % six.text_type(ex))<EOL>raise SFtpExecutionError(err=ex)<EOL><DEDENT>
scp the local file to remote folder.

        :param local_path: local path
        :param remote_path: remote path