mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
redirected ssh-log to journalctl
This commit is contained in:
parent
dc4ddb6b27
commit
7fe777c5f8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user