redirected ssh-log to journalctl

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-11 14:24:29 +01:00
parent dc4ddb6b27
commit 7fe777c5f8

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
# log # log command
if [ -n "$SSH_ORIGINAL_COMMAND" ] if [ -n "$SSH_ORIGINAL_COMMAND" ]
then then
echo "`/bin/date`: $SSH_ORIGINAL_COMMAND" >> $HOME/ssh-command-log echo "`/bin/date`: $SSH_ORIGINAL_COMMAND" | systemd-cat -t "ssh-wrapper.sh"
fi fi
# filter commands # filter commands