I need to create a user that can use ssh, but not download files through sftp. I've googled a lot, and had try a lot of configurations, but none of them work. So I think the only way to do it, it's not disabling sftp for that user, but blacklisting the download of files from the server for him. is there a way to do it? I need that the user can go though files and see her size, and some other properties, but not download them. My system is an Ubuntu 16.04. I've already tried to edit the /etc/ssh/sshd_config file and edit/including the lines:
Subsystem sftp internal-sftp
Match User notdownloaderuser
ForceCommand internal-sftp -p read
and including after restart the services (ssh and sshd) it won't work, ssh terminal exited with code 1 (without the above lines it works fine)
Any ideas?