From owner-freebsd-questions@freebsd.org Tue Jul 18 14:37:47 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D40DD7EE3E for ; Tue, 18 Jul 2017 14:37:47 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.20.71]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2C37077E for ; Tue, 18 Jul 2017 14:37:46 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 94E9ACB8CEA; Tue, 18 Jul 2017 09:37:45 -0500 (CDT) Received: from 128.135.52.6 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Tue, 18 Jul 2017 09:37:45 -0500 (CDT) Message-ID: <29290.128.135.52.6.1500388665.squirrel@cosmo.uchicago.edu> In-Reply-To: References: <20170717051638.GB2368@c720-r314251> Date: Tue, 18 Jul 2017 09:37:45 -0500 (CDT) Subject: Re: sshd logging From: "Valeri Galtsev" To: "Paul Schmehl" Cc: "FreeBSD Questions" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 14:37:47 -0000 On Mon, July 17, 2017 6:35 pm, Paul Schmehl wrote: > --On July 17, 2017 at 6:38:00 AM -0400 Daniel Feenberg > wrote: > >> >> >> On Mon, 17 Jul 2017, Matthias Apitz wrote: >> >>> El día domingo, julio 16, 2017 a las 10:34:42p. m. -0500, Paul Schmehl >>> escribió: >>> >>>> Is there a way to get sshd to only log successful logins? >>> >>> What about using ipf(8)? >> >> denyhosts or fail2ban would be easier. You'd still get a few lines in >> the >> logs, but only a few. >> I use sshguard (you may want to look also at sshguard-ipfw, sshguard-pf). ssh is not the only service sshguard can protect. Just one more option. Valeri > > Thanks, Dan. I'll take a look. > > I've never understood why logging routinely records every failed > interaction. I suppose it's because summarizing it would take more > processing plus some sort of database. Seriously though, why should I care > about failed logins? It's the successful ones that I need to know about. > > Paul Schmehl, Retired > As if it wasn't already obvious, my opinions > are my own and not those of my employer. > ******************************************* > "It is as useless to argue with those who have > renounced the use of reason as to administer > medication to the dead." Thomas Jefferson > "There are some ideas so wrong that only a very > intelligent person could believe in them." George Orwell > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++