commands
chmod
Change the permissions of remote files.
Syntax
Section titled “Syntax”chmod <mode> <remote-file>...Sets the permissions of each named file to <mode>, an octal number of
three digits (644) or four, where the first digit holds the setuid,
setgid and sticky bits (1777).
The last part of each name may be a mask, such as
*.sh. A mask that matches nothing is handled as set by
failonnomatch.
The server must support permissions; SFTP and SCP do, and many FTP
servers accept SITE CHMOD.
Affected by
Section titled “Affected by”failonnomatch (see option).
Examples
Section titled “Examples”chmod 755 /home/alice/bin/deploy.shchmod 640 /var/www/html/*.php