use internal sftp-server
internal sftp-server is needed according to https://serverfault.com/questions/354615/allow-sftp-but-disallow-ssh as we want add a user who is only able to upload files in a chroot environment
This commit is contained in:
parent
f5d1213812
commit
a87f5083e8
1 changed files with 1 additions and 5 deletions
|
@ -12,8 +12,4 @@ X11Forwarding {{ salt['pillar.get']('basics:ssh:x11_forwarding', 'no') }}
|
||||||
PrintMotd no
|
PrintMotd no
|
||||||
MaxStartups 5:50:30
|
MaxStartups 5:50:30
|
||||||
AcceptEnv LANG LC_*
|
AcceptEnv LANG LC_*
|
||||||
{% if grains.os_family == "Suse" %}
|
Subsystem sftp internal-sftp
|
||||||
Subsystem sftp /usr/libexec/ssh/sftp-server
|
|
||||||
{% else %}
|
|
||||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
|
||||||
{% endif %}
|
|
||||||
|
|
Loading…
Reference in a new issue