pam_ssh_agent is a PAM module that spawns an ssh-agent and adds identities using the password supplied by the user at login.