tuer: Add sftp support
authornicoo <nicoo@realraum.at>
Sun, 20 May 2018 23:23:09 +0000 (01:23 +0200)
committernicoo <nicoo@realraum.at>
Sun, 20 May 2018 23:23:09 +0000 (01:23 +0200)
ansible/tuer.yml

index f5694b2..853a0cf 100644 (file)
@@ -66,6 +66,7 @@
           - git
           - kmod-usb-acm
           - openssh-server
+          - openssh-sftp-server
           - screen
           - sudo
           - usbutils
@@ -91,7 +92,7 @@
             file: "{{ playbook_dir }}/files/tuer/update-keys-from-stdin.sh"
 
           /etc/ssh/sshd_config:
-            content: |-
+            content: |
               Port 22000
 
               AllowUsers root tuerctl tuergit
               X11Forwarding no
               UsePrivilegeSeparation sandbox
 
+              Subsystem sftp /usr/libexec/sftp-server
+
               Match User tuerctl
                 AuthorizedKeysFile /dev/null
                 AuthorizedKeysCommand /usr/local/bin/authorized_keys.sh
                 AuthorizedKeysCommandUser tuergit
-
+              
 
           /etc/ssh/authorized_keys.d/root:
             content: |-