Answer the question
In order to leave comments, you need to log in
How to set permissions for files sent via sftp?
To exchange files between two users raised SFTP. The /etc/ssh/sshd_config file looks like this:
Subsystem sftp internal-sftp
Match group sftp
X11Forwarding no
PasswordAuthentication no
AuthorizedKeysFile %h/.ssh/authorized_keys
AllowTcpForwarding no
AllowAgentForwarding no
PermitTunnel no
PermitTTY no
ForceCommand internal-sftp
ChrootDirectory /var/change
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question