LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-28-2008, 07:30 PM   #1
hbar
Member
 
Registered: Dec 2007
Location: Canada
Distribution: Debian
Posts: 50

Rep: Reputation: 15
Log all sshd attempts


I'm trying to have sshd log all login attempts to a simple logfile, but I haven't found a straightforward answer. It seems that ssh logs to /var/log/auth.log, but that file is full of things I don't really care about (i.e. cron writing things every 5 minutes).

Can ssh be configured to log nicely to its own file?
 
Old 01-29-2008, 12:41 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,406
Blog Entries: 55

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
See "man sshd_config": SyslogFacility?
 
Old 01-29-2008, 03:53 PM   #3
Dankles
Member
 
Registered: May 2004
Location: /dev/null
Distribution: Slackware
Posts: 245

Rep: Reputation: 31
This works for me on fedora:
Code:
# cat /var/log/secure | grep su:
then it just shows logins and logouts.

"/var/log/secure" is usually the sshd log file for linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh...log files that store the login attempts Bgrad Linux - Networking 4 03-29-2010 09:40 AM
SSH Alert when root attempts to log gamehack Linux - Software 3 06-03-2009 06:44 AM
Extract SU attempts to separate log beammeup Linux - Security 4 09-01-2007 09:01 AM
SSHD : control login attempts Ben2210 Linux - Security 0 02-07-2005 05:31 AM
Increase Log in attempts from 1 chrisk5527 Linux - Newbie 5 01-31-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration