From owner-freebsd-questions@FreeBSD.ORG Sat Nov 26 15:13:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 269C416A420 for ; Sat, 26 Nov 2005 15:13:10 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BC1543D83 for ; Sat, 26 Nov 2005 15:12:54 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 26223 invoked from network); 26 Nov 2005 15:12:51 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 26 Nov 2005 15:12:51 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 8B8F52841E; Sat, 26 Nov 2005 10:12:50 -0500 (EST) Sender: lowell@be-well.ilk.org To: James Long References: <20051125035711.GA58357@ns.museum.rain.com> From: Lowell Gilbert Date: 26 Nov 2005 10:12:50 -0500 In-Reply-To: <20051125035711.GA58357@ns.museum.rain.com> Message-ID: <44y83bphn1.fsf@be-well.ilk.org> Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: How to have sshd log IP numbers instead of reverse lookups X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2005 15:13:10 -0000 James Long writes: > I was looking at /var/log/auth.log and saw an entry of the form: > > Nov 24 18:41:37 ns sshd[58083]: error: PAM: authentication error for username from example.com > > I wish to have an IP number logged where sshd has instead logged > 'example.com' > > Reading sshd's man page and sshd_config's man page, I don't find any > way to control this. > > Since 'example.com' could have multiple IP numbers, how can I change > sshd's configuration to log the IP number from whence the > authentication error originated? If I recall correctly, those messages should be associated with other messages about the host connecting, which would include the IP address.