OK, OpenSSH is Unix-based. On Windows it runs on Cygwin emulation. Cygwin tries to map Unix-like permissions to Windows permissions. What obviously cannot work properly. I cannot tell from your description if WinSCP is trying to apply some permissions on its own or if cygwin just applies the default permissions.
SSH/SFTP server is Open SSH for Windows v3.8.1p1-1
What is your SSH/SFTP server?
I'm at my wits end on this.
I transferring files via winscp.com and SSH from one w2003 server to another.
the transfer runs fine however the permissions on the .exe files do not match those on any other file. They are much more limited and prevent the files from being executed on the remote side. I dont have any chmod commands in my script so I cant understand whats happening.
What am I missing.