From: nicoo Date: Sun, 20 May 2018 23:23:09 +0000 (+0200) Subject: tuer: Add sftp support X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=f8daca62b6517dd17d40a3a0342cbd5c8ec7b6f8;p=noc.git tuer: Add sftp support --- diff --git a/ansible/tuer.yml b/ansible/tuer.yml index f5694b2..853a0cf 100644 --- a/ansible/tuer.yml +++ b/ansible/tuer.yml @@ -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 @@ -103,11 +104,13 @@ 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: |-