Had the same "error code 4" while moving files remotely to another HDD. Had to switch protocol from SFTP to SCP to solve my issue. :)
I was having issue connection from Windows PC to AIX server using Isilon storage. Switch from SFTP to SCP fix my issues. Thanks for the help.