scp doesn't respect umask setting of the user it's sending files to. Is there a setting somewhere or should I use a different solution?
The umask, in the way you mean it, is a property of the login shell. It is set in
.profile or one of its relatives. Since
scp doesn't log in interactively, it doesn't run any of these scripts, so it doesn't get the umask setting you've defined there.
The closest thing I can think of to what you want is to set the permissions appropriately on the file locally, then use the
-p option to
scp to preserve the file modes.
You might also find
rsync helpful. If you use its
-a option, it will preserve almost all attributes of a file when copying, including permissions and modes.