Answer the question
In order to leave comments, you need to log in
Logging SSH commands to debian lenny
There is a server with debian, from time to time people go there under the root and perform certain actions, the question is: what is the best way to do it so that all the commands entered via SSH are logged? (OpenSSH5)
Answer the question
In order to leave comments, you need to log in
Have a look at Snoopy Logger or grsecurity .
From a cannon to sparrows, of course, but, it seems, your task should be solved
In debian, ssh seems to write to /var/log/auth.log by default...
On CentOS, I did it via /root/.bashrc like this:
export HISTTIMEFORMAT='%Y.%m.%d-%T :: ' HISTFILESIZE=5000 HISTSIZE=5000
export HISTCONTROL=erasedups
PROMPT_COMMAND='history 1 >> /${HOME}/.allhist'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question