Not sure what is going wrong, but I do not use scp for this but instead have successfully mounted the Unraid shares on Raspberry Pi systems by first doing:
sudo apt update
sudo apt install samba samba-common-bin smbclient cifs-utils
and then using using entries in /etc/fstab of the form:
//network-name/share-name mountpoint cifs auto,uid=pi,gid=pi,user=username,password=password,_netdev 0 0
although you should be able to use the equivalent 'mount' command on Rpi instead of fstab entries.
I have also gone the other way and set up a Samba server on a Raspberry Pi and then mounted this from Unraid via the UD plugin. You can google for the steps to achieve this.
Note the above steps also work for me when I want to transfer files between a Windows machine and a Raspberry Pi