The problem “Received SSH_FXP_NAME packet with zero or multiple records” was manifested here with AIX and here what I did to solve it.
First I login to the machine with the ssh and use a regular user (root doesn’t count).
I entered the directory where the error is ocurring and listed it using ls -la. Check the current directory and up one level (. and ..). If it appear as ./.. Permission denied, do the following:
1. Umount the filesystem. If necessary, force it (umount -f /filesystem).
2. Check the permissions of the folder used by the mount point.
3. Mount it.
4. Check the permissions of the mount point.
5. List again inside the filesystem (ls -la) and check if the message (./.. Permission denied) appears again.
Try to connect again with WinSCP.
This problem manifested while using WinSCP. FileZilla wasn’t presenting this behavior.