From f8daca62b6517dd17d40a3a0342cbd5c8ec7b6f8 Mon Sep 17 00:00:00 2001 From: nicoo Date: Mon, 21 May 2018 01:23:09 +0200 Subject: [PATCH] tuer: Add sftp support --- ansible/tuer.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: |- -- 1.7.10.4