Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2006 21:55:46 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-stable@freebsd.org, stefan.thurner@mb.tu-chemnitz.de
Subject:   Re: pam.d/sshd
Message-ID:  <200611232155.47893.doconnor@gsoft.com.au>
In-Reply-To: <200611230916.kAN9GJXe082669@lurza.secnetix.de>
References:  <200611230916.kAN9GJXe082669@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1657623.r2N2Wd8X62
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Thursday 23 November 2006 19:46, 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.)

You're wrong :)

I have all of my pam.d config files include a single system file so I can
control it all in one place.

I have this for auth ->
# auth
auth            sufficient      pam_opie.so             no_warn no_fake_pro=
mpts
auth            requisite       pam_opieaccess.so       no_warn allow_local
auth            sufficient      pam_ssh.so
auth            required        pam_unix.so             no_warn use_first_p=
ass nullok

And this for session ->
# session
session         optional        pam_ssh.so              want_agent
session         required        pam_lastlog.so          no_fail

(the session stuff is what starts ssh-agent)

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart1657623.r2N2Wd8X62
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBFZYU75ZPcIHs/zowRAhJ3AJoDW20t8KdzWeSKXPrh0nSzNkItNwCfbyLP
3Gbchc4KaruLb1AhprpMwVM=
=w4Ij
-----END PGP SIGNATURE-----

--nextPart1657623.r2N2Wd8X62--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611232155.47893.doconnor>