mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	redirected ssh-log to journalctl
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user