The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2002
penguin-friend
Guest
 

Posts: n/a
Post SSH and command logging

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  
Old 02-24-2002
Registered User
 

Join Date: Feb 2002
Location: www.freebsdforums.org
Posts: 67
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  
Old 02-25-2002
penguin-friend
Guest
 

Posts: n/a
Wink Well, seems like i still have some things to learn from unix.com!

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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0