How can I setup rsyslog
to log commands typed in a ssh session?
Just in case someone unauthorized ever accesses the system, I'd like to know what he did.
loggingrsyslogsyslog
How can I setup rsyslog
to log commands typed in a ssh session?
Just in case someone unauthorized ever accesses the system, I'd like to know what he did.
Best Answer
What it sounds like to me is that you want to audit what a user does once he's logged into your server. This is really more a function of the shell that your user is running (like bash).
Check out https://askubuntu.com/questions/93566/how-to-log-all-bash-commands-by-all-users-on-a-server
You can probably employ the same thing for any user who's logging in remotely.