validate-rsync.sh enabled

This commit is contained in:
rene
2022-03-18 15:43:04 +01:00
parent 7bd3b9bb75
commit 35f27265c4
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
case "${SSH_ORIGINALCOMMAND}" in
case "${SSH_ORIGINAL_COMMAND}" in
*\&*)
echo "Rejected 1"
;;

View File

@@ -24,6 +24,12 @@
with_file:
- public_keys/backup_ed25519.pub
- name: users | root | copy ~/validate-rsync.sh
copy:
dest: "{{ getent_passwd[user][4] }}/validate-rsync.sh"
src: "validate-rsync.sh"
mode: "0744"
# - name: users | root | install private ssh keys
# copy:
# dest: "/root/.ssh/"