chmod is recursive. It has some limitations with SCP. Though I'm not sure if this should be your case. Anyway, it is worth trying SFTP instead.
After a couple hours of searching and testing, I didn't found how to do recursive chmod with the command-line.
this is my script :
open scp://USERNAME:PASSWORD@192.168.1.251
cd /mnt/FILESERVER/
chmod 777 * <<--- not recursive :(
How can I set all files and all sub directories with 777?
I can use ftp, sftp or scp
thanks :)