From owner-freebsd-stable@FreeBSD.ORG Thu Nov 23 14:03:12 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B77016A403 for ; Thu, 23 Nov 2006 14:03:12 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A29B43D49 for ; Thu, 23 Nov 2006 14:02:36 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qpszcd@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id kANE34QJ098026; Thu, 23 Nov 2006 15:03:09 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id kANE33TN098025; Thu, 23 Nov 2006 15:03:03 +0100 (CET) (envelope-from olli) Date: Thu, 23 Nov 2006 15:03:03 +0100 (CET) Message-Id: <200611231403.kANE33TN098025@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, stefan.thurner@mb.tu-chemnitz.de In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 23 Nov 2006 15:03:09 +0100 (CET) Cc: Subject: Re: pam.d/sshd X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, stefan.thurner@mb.tu-chemnitz.de List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2006 14:03:12 -0000 Stefan Thurner wrote: > Oliver Fromme wrote: > > Stefan Thurner wrote: > > > I would like to activate ssh-agent automatically if I login > > > via ssh. > > > > As far as I know there is no mechanism to start ssh-agent > > automatically. (Someone please correct me if I'm wrong.) > > the session module of pam_ssh.so should do that. Right. But according to the manpage it kills the agent upon close of the seesion, which I don't want. The script snippet that I pasted lets the agent run permanently, and only starts a new one if necessary (e.g. after a reboot). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing."         -- Mother Teresa