I can't set permissions on my remote directories. The error code is:
Command "chmod u+rwx,g+rx-w,o+rx "kepek""
failed with return code -1 and error message
invalid characters in scp command!
try using a wildcard to match this file/directory.
I hope you know why this happens. The server setting is SCPonly.
Your SCPonly shell does not support +/- syntax of chmod or chmod command at all. It the first is true, you may try to specify permissions exacly (all checkboxes must be on or off, none must be "undefined"). In this case WinSCP uses octal format of chmod. This feature is supported only by latest build of WinSCP.