In my attempt to provide a solution where SSH session for a user needs to be recorded, I found out that
works well.
The issue is, how to make sure when user types in ssh name@ip is recorded to file. I could change users login shell so that regular command is replaced with the above. But then how to stop user from seeing/changing this? Any ideas?
$ssh name@ip | tee file.log
works well.
The issue is, how to make sure when user types in ssh name@ip is recorded to file. I could change users login shell so that regular command is replaced with the above. But then how to stop user from seeing/changing this? Any ideas?