created role for bootstrapping a Linode VPS via API or a LAN homeserver
This commit is contained in:
9
roles/init-server/templates/sshd_config.d/sftp.conf.j2
Normal file
9
roles/init-server/templates/sshd_config.d/sftp.conf.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
{% for item in ftp_groups.results %}
|
||||
Match Group {{ item.name }}
|
||||
ForceCommand internal-sftp -d /%u
|
||||
ChrootDirectory /srv/{{ item.name}}
|
||||
AllowAgentForwarding no
|
||||
AllowTcpForwarding no
|
||||
X11Forwarding no
|
||||
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user