From nobody@FreeBSD.org  Sat Dec 23 21:27:33 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id D93B416A416
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Dec 2006 21:27:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id CCF7713C465
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Dec 2006 21:27:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBNLRXEG022439
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Dec 2006 21:27:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBNLRXNm022438;
	Sat, 23 Dec 2006 21:27:33 GMT
	(envelope-from nobody)
Message-Id: <200612232127.kBNLRXNm022438@www.freebsd.org>
Date: Sat, 23 Dec 2006 21:27:33 GMT
From: Stefan Thurner<thurners@nicsys.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pam.d/sshd pam_ssh.so doesn't start ssh-agent
X-Send-Pr-Version: www-3.0

>Number:         107154
>Category:       kern
>Synopsis:       [pam] pam.d/sshd pam_ssh.so doesn't start ssh-agent
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 23 21:30:15 GMT 2006
>Closed-Date:    
>Last-Modified:  Sat Dec 23 21:42:41 GMT 2006
>Originator:     Stefan Thurner
>Release:        FreeBSD  6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD xris.fu41.vpn 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Nov 15 22:26:31 CET 2006     root@xris.fu41.vpn:/usr/obj/usr/src/sys/CUSTOM  i386
>Description:
What I want is that ssh-agent is started on the remote host if I login on the
remote host. Therefore I added the following lines to pam.d/sshd
file on the remote host.

auth            optional        pam_ssh.so              no_warn try_first_pass
session         optional        pam_ssh.so

If I login on the remote host the password for ssh-key is requested (as
it should) but no ssh-agent is started (even if type in the correct ssh
passphrase). I'm quite sure that it is a bug
in pam_ssh.so.
>How-To-Repeat:
Add the described lines to pam.d/sshd on a remote host. Export your public
ssh key to the remote host and login on the remote host. See if ssh-agent
is started and serving your passphrase (ssh-add -l).
>Fix:
Sorry, no idea.
>Release-Note:
>Audit-Trail:
>Unformatted:
