I have a user let call him bob connecting via sftp with bob account. using for client ftp-kr in VSCODE(osx) and server debian 9, I would like to setup a umask like for ftp service.
I tried adding umask 022
and also tried umask 0022
in both /home/bob/.bashrc
and /home/bob/.profile
also tried Subsystem sftp /usr/lib/openssh/sftp-server -u 0022
in /etc/ssh/sshd_config
update: if I create a folder I get 755 as expected but not with files; getting 644.
if I type umask
I get 0022
as active umask