Log ssh sessions using open source tools

Damien Miller
Mon, 05 Nov 2018 02:42:25 -0000

On Sat, 3 Nov 2018, Kaushal Shriyan wrote:

> Hi,
>
> Are there any open source tools to keep track of ssh sessions? For example,
> if a specific user is ssh logging to remote server and what commands or
> scripts are being run. Basically, i need to log all users sessions.

You should look at your operating system's audit functionality. E.g. Linux
has an audit system that can be configured to log all command executions
associated with a PTY (AFAIK).

-d