Hey, I'm currently trying to add some extra logging functionalities to OpenSSH. However, I'd like to log all commands the client sends to the server. But I'm unable to find where exactly this happens in the OpenSSH source. I've tried the do_child() function but that did not work. Am I forgetting something? Thank you, Johan.
Johan De Wolff wrote:> I'm currently trying to add some extra logging functionalities to OpenSSH. > However, I'd like to log all commands the client sends to the server. > > But I'm unable to find where exactly this happens in the OpenSSH source.OpenSSH is not really involved in commands that the client's terminal emulator sends to the shell running on the server. //Peter
On 2/14/15, 2:27 PM, Johan De Wolff wrote:>I'm currently trying to add some extra logging functionalities to >OpenSSH. However, I'd like to log all commands the client sends to the >server. > >But I'm unable to find where exactly this happens in the OpenSSH source. >I've tried the do_child() function but that did not work.https://code.google.com/p/auditing-sshd/ may provide a helpful example. -Jim