![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| logging into | vinayrao | Shell Programming and Scripting | 1 | 03-14-2008 08:57 AM |
| Command Logging in SCO | brian_g | UNIX for Dummies Questions & Answers | 2 | 04-13-2006 02:46 PM |
| Logging command invocations - cmdlog | Driver | UNIX for Dummies Questions & Answers | 1 | 05-15-2004 04:30 PM |
| What is command for logging? | dtamminx | UNIX for Dummies Questions & Answers | 3 | 02-11-2003 03:58 PM |
| logging | The Fridgerator | Security | 5 | 08-20-2002 03:12 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all...
I've completed the task of deploying SSH over my 400 servers. I don't know if i'm right or wrong, but ssh doesn't do any command-logging, does it? Is there a app i can use to log all commands passed ( besides the usual .sh_history), whith no modification possible by the user, and how can i couple this to ssh? Thanx... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
You did not mention which ssh you are using ? your OS ? please always provide as many details as possible without sharing any personal info. Here is something I got from usenet (you possibly could log every command by changing values of SyslogFacility and LogLevel). Remember, since we dont know what packages you are using your files may be in different directories :
I log sshd session in a file called /var/log/sshd.log and here's how I do it: 1. touch /var/log/sshd.log 2. edit your /etc/syslog.conf and add the lines !sshd *.* /var/log/sshd.log 3. killall -HUP syslogd The sshd will now log stuff into /var/log/sshd.log. Edit your /etc/ssh/sshd_config file to determine what gets logged. By default, the following lines are in sshd_config for sylog logging: SyslogFacility AUTH LogLevel INFO Change as necessary, more details are in the sshd manpage.
__________________
FreeBSD: The best free Unix on this planet IMHO!! FreeBSD Forums www.freebsdforums.org |
|
#3
|
|||
|
|||
|
In fact, i'm using SSH on HP and Sun boxes.
I know i didn't supply any info on my os or ssh, because it was more a general question then a particular one! Thanx anyways! |
|||
| Google The UNIX and Linux Forums |