when I uploadload a file(mode 744) from local to remote, the mode of the remote file is 644
Firstly, I thought it was caused by the umask of the server, but I checked the default umask of both client and server are 0022,
maybe enable the option of sftp can fix the problems?
SFTP(1)
-p Preserves modification times, access times, and modes from the
original files transferred.
when I uploadload a file(mode 744) from local to remote, the mode of the remote file is 644 Firstly, I thought it was caused by the umask of the server, but I checked the default umask of both client and server are 0022, maybe enable the option of sftp can fix the problems?
SFTP(1) -p Preserves modification times, access times, and modes from the original files transferred.