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