def upload_file(self, local_path, remote_path):
        """
        Upload a file from the local filesystem to the remote host

        :type local_path: str
        :param local_path: path of local file to upload
        :type remote_path: str
        :param remote_path: destination path of upload on remote host
        """
        logger.debug("{0}: uploading {1} to {0}:{2}".format(self.target_address,
                                                            local_path,
                                                            remote_path))
        try:
            sftp = paramiko.SFTPClient.from_transport(self.transport())
            sftp.put(local_path, remote_path)
            sftp.close()
        except SSHException as ex:
            logger.warn(("{0}: LiME module upload failed with exception:"
                         "{1}".format(self.target_address, ex)))
def upload_file ( self , local_path , remote_path ) : logger . debug ( "{0}: uploading {1} to {0}:{2}" . format ( self . target_address , local_path , remote_path ) ) try : sftp = paramiko . SFTPClient . from_transport ( self . transport ( ) ) sftp . put ( local_path , remote_path ) sftp . close ( ) except SSHException as ex : logger . warn ( ( "{0}: LiME module upload failed with exception:" "{1}" . format ( self . target_address , ex ) ) )
Upload a file from the local filesystem to the remote host

        :type local_path: str
        :param local_path: path of local file to upload
        :type remote_path: str
        :param remote_path: destination path of upload on remote host