Score:0

Command logging for chroot ssh users

in flag

I have a ubuntu server that allows users access via ssh. When they log in they are contained to their chroot directory.

I'm looking for a way to log commands used by the users. I've tried using snoopy but it doesn't log commands for users in chroot.

It there any possible solution for this ? The only similar resources I've found have been for sftp. Would greatly appreciate any advice, thanks.

djdomi avatar
za flag
did you already thinked about monitoring `.bash_history`?
in flag
Yeah I considered it, however as it would be possible for the user to clear the history I don't think it is viable.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.