sshlog / agent

SSH Session Monitoring Daemon
http://www.sshlog.com
Other
464 stars 22 forks source link

Doesn't work at all #18

Closed FoggyB-Devops closed 6 months ago

FoggyB-Devops commented 6 months ago

I have installed the package from apt and from the deb file you provided in the Releases menu of github repo. The installation is smooth and successful. After that when I use sshlog sessions, I can only see two sessions which are not correct and both session's last activity shows the time when the sshlog service was actually started. If I open another ssh session in another terminal or close it it doesn't increase or decrease the number of sessions in sshlog sessions.

Apart from that, when I use sshlog watch, it gives me an empty output even though I run several commands in another terminal while this command is running. The log files in /var/log/sshlog are empty and never generate any output even though I have run several commands. I have kept the configuration files as default and following are my machine's specs

OS : Ubuntu 20.04.6 LTS OpenSSH Version : 1:8.2p1-4ubuntu0.11 Gnupg version : 2.2.19-3ubuntu2.2 Curl version : 7.68.0-1ubuntu2.21 sshlog version : 1.0.0 Kernel version : 5.4.0-1101-aws

FoggyB-Devops commented 6 months ago

Ohh. It doesn't logs root user history and I was trying from root user only. When I switched my user to ubuntu, it started working. Apologies for the confusion but I think it should be a feature in upcoming version to log root user history as well (can be turned off in config file).