From 7fe777c5f81b0124851375f9c837d29b93da4c7a Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 11 Jan 2021 14:24:29 +0100 Subject: [PATCH] redirected ssh-log to journalctl --- roles/native-user-backup/templates/ssh-wrapper.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/native-user-backup/templates/ssh-wrapper.sh.j2 b/roles/native-user-backup/templates/ssh-wrapper.sh.j2 index 506f2bc1..d54c04fa 100644 --- a/roles/native-user-backup/templates/ssh-wrapper.sh.j2 +++ b/roles/native-user-backup/templates/ssh-wrapper.sh.j2 @@ -1,9 +1,9 @@ #!/bin/sh -# log +# log command if [ -n "$SSH_ORIGINAL_COMMAND" ] then - echo "`/bin/date`: $SSH_ORIGINAL_COMMAND" >> $HOME/ssh-command-log + echo "`/bin/date`: $SSH_ORIGINAL_COMMAND" | systemd-cat -t "ssh-wrapper.sh" fi # filter commands