Logging SSH commands in debian lenny


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
You have a server with Debian, periodically there under Ruth people and perform certain actions, the question is: how best to do that was recorded in a log all commands which were introduced via SSH? (OpenSSH5)
by | 5 views

7 Answers

0 like 0 dislike
View Snoopy Logger or grsecurity.
\r
From a gun on sparrows, of course, but, like, your problem should solve
by
0 like 0 dislike
Ruth can be everything. Understand?
by
0 like 0 dislike
E in Debian, like default ssh writes to /var/log/auth.log...
by
0 like 0 dislike
On CentOS done using /root/.bashrc thus:
\r
\r
export HISTTIMEFORMAT='%Y.%m.%d-%T :: 'HISTFILESIZE=5000 HISTSIZE=5000 export HISTCONTROL=erasedups PROMPT_COMMAND='history 1 >> /${HOME}/.allhist'

\r
With Debian I worked a little, but I think the difference is not big.
by
0 like 0 dislike
by
0 like 0 dislike
Then mark this as a success :)
by
0 like 0 dislike
We all went syslog'om the neighbouring server :)
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,000 users